|
 |
asp_web_howto thread: hello help me please
Message #1 by "amal ahmed" <newimix@h...> on Fri, 20 Apr 2001 22:48:21
|
|
Hello :
Thanks for this servies in first .
Actually I want to make an intery page where there is a combo or drop down list
filled with data I get it from the database and in the same time insert into some
input text another data by typing it on the screen .
but to make a href on the selected option it must go to another place and take the
country code as example and also take the the text I wrote which it stored in a
variable how can I type it in the asp. to do it correct
my fail try is
<select onChange="window.location.href=this.options[this.selectedIndex].value"
target="bottom">
<option value="#">اختر افاسك</option>
<%
CurrentRecord = 0
Do While CheckRS(RS)%>
<option value="submainadd.asp?mainser=<%= RS("main_ser") %>&subdesc="subdesc" " > <%
= RS("main_ser") %>
<%= RS("main_desc") %></option>
<% RS.MoveNext
CurrentRecord = CurrentRecord + 1
Loop
%>
</select>
that subdesc was text form on the screen but it take a null data to the database
where the code of the option or main_ser is written correct in the database
please help me .......
Message #2 by "Peter Lanoie" <planoie@e...> on Mon, 23 Apr 2001 14:36:49 -0400
|
|
One thing I noticed is where you have subdesc. It looks like that is
supposed to be in ASP perhaps?
<option value="submainadd.asp?mainser=<%= RS("main_ser")
%>&subdesc=<%=subdesc%>">
What you had before would cause the value attribute to get chopped off after
the subdesc = sign.
<option value="submainadd.asp?mainser=<%= RS("main_ser")
%>&subdesc="subdesc" " >
--------------------------------------------------------------------^
-----Original Message-----
From: amal ahmed [mailto:newimix@h...]
Sent: Friday, April 20, 2001 6:48 PM
To: ASP Web HowTo
Subject: [asp_web_howto] hello help me please
Hello :
Thanks for this servies in first .
Actually I want to make an intery page where there is a combo or drop down
list
filled with data I get it from the database and in the same time insert into
some
input text another data by typing it on the screen .
but to make a href on the selected option it must go to another place and
take the
country code as example and also take the the text I wrote which it stored
in a
variable how can I type it in the asp. to do it correct
my fail try is
<select
onChange="window.location.href=this.options[this.selectedIndex].value"
target="bottom">
<option value="#">GNJQ GaGSc</option>
<%
CurrentRecord = 0
Do While CheckRS(RS)%>
<option value="submainadd.asp?mainser=<%= RS("main_ser")
%>&subdesc="subdesc" " > <%
= RS("main_ser") %>
<%= RS("main_desc") %></option>
<% RS.MoveNext
CurrentRecord = CurrentRecord + 1
Loop
%>
</select>
that subdesc was text form on the screen but it take a null data to the
database
where the code of the option or main_ser is written correct in the database
please help me .......
---
SoftArtisans helps developers build robust, scalable Web applications!
Excel Web reports, charts: http://www.softartisans.com/excelwriter.html
File uploads: http://www.softartisans.com/saf.html
Transactional file management: http://www.softartisans.com/saf1.html
Scalability: http://www.softartisans.com/saxsession.html
ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html
$subst('Email.Unsub')
Message #3 by "amal ahmed" <newimix@h...> on Tue, 24 Apr 2001 22:33:45
|
|
Thanks for your interest :
The subdesc as I said befor is a text form in the asp page filled by the user
and it written in the page
<%
mainser = Replace(Request("mainser"), "'", "''")
subdesc = Replace(Request("subdesc"), "'", "''")
%>
<input type="text" name="subdesc" value="" size=40>
that is the subdesc how th write the right syntax in the option value as a href
thanks
|
|
 |