J
|
Jane 7/31/2008 |
Hi, str = "" str = "<select onChange=""java script: document.location='tablename_list.asp?a=search&value=1&SearchOption=Contains&SearchField=FieldName&SearchFor='+this.options[this.selectedIndex].value;"">" str = str & "<option value="">Please select</option>" strSQL = "select FieldName from TableName" Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open strSQL,dbConnection while not rstmp.eof str = str & "<option value=""" & rstmp("FieldName") & """>" & rstmp("FieldName") & "</option>" rstmp.MoveNext wend rstmp.close set rstmp=nothing str = str & "</select>" Response.write str |
S
|
sfhussain author 7/31/2008 |
Hi, use custom event (Insert ASP code snippet option on the Visual Editor tab) to create dropdown on the list page. Here is a sample:
|
J
|
Jane 8/1/2008 |
Hi, |
S
|
sfhussain author 8/1/2008 |
I mean to say that i want to use two or more then drop down in a row with multiple fields. |
S
|
sfhussain author 8/1/2008 |
HI Jane, str = "" str = "<select onChange=""java script: document.location='south_list.asp?a=search&value=1&SearchFor=c&SearchOption=Contains&SearchField=zone&SearchFor='+this.options[this.selectedIndex].value;"">" str = str & "<option value="">Please select</option>" strSQL = "select zone from south" Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open strSQL,dbConnection while not rstmp.eof str = str & "<option value=""" & rstmp("zone") & """>" & rstmp("zone") & "</option>" rstmp.MoveNext wend rstmp.close set rstmp=nothing str = str & "</select>" Response.write str
|
J
|
Jane 8/1/2008 |
It's difficult to tell you what's happening without seeing actual files. |
S
|
sfhussain author 8/1/2008 |
It's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error. I'll find what's wrong with your project inspecting it at Demo account site.
|
J
|
Jane 8/1/2008 |
Hi, |
S
|
sfhussain author 8/1/2008 |
Thanks Jane for help, |
J
|
Jane 8/1/2008 |
Send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error. |
S
|
sfhussain author 8/1/2008 |
Jane, |