Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Lesley G #1
DYNAMIC Dropdown. How to stick on non dynamic choice?
Environment: DreamweaverMX 2004, ASP, VBScript, mySQL I have a dropdown which
is populated dynamically from a mySQL database plus a hand entered option 'All'
that returns all records (value '%'). The problem is that there doesn't seem
to be any way in which the dropdown will display 'All' by default or stick on
this choice, once made by the user. I can, however, do this if the dropdown
is not dynamic, by adding extra code, but this just doesn't work if the
selection list is dynamic. The search and results are carried out on the same
page. Any clues???? Lesley
Lesley G Guest
-
dynamic drop downlists in an editable dynamic datagrid.
How would we address a situation where we have to put dynamic drop downlists in an editable dynamic datagrid. So the scenario is to populate a... -
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event.
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the... -
Dynamic dropdown not showing true recordset (PHP/MySQL)
Hi, This is a strange one - I have a recordset bound to my page, 'UCust' containing a list of customer names. It uses the DISTINCT SQL statement to... -
dropdown and dynamic text field
hi i am using the following code to try and get a dropdown (sizeList) to fill a dynamic text field with differing values. sizeList has setPrice... -
Limiting duplicates in a dynamic dropdown? - Code included
I'm using this script to dynamicaly populate 2 dropdowns and dispaly the results. Choose a component type from the first drop down, lets say 'car'... -
Piers 2k #2
Re: DYNAMIC Dropdown. How to stick on non dynamic choice?
Lesley,
Select the list/menu and go into code view and look for the following:
<select name="select">
<%
While (NOT rstRecordset.EOF)
%>
........
On the line below <select name="select">, enter
<option value="%">-- All --</option>
I don't know if a % is the wildcard character for mySQL, so might need to
change that around.
Let me know,
Piers
Piers 2k Guest
-
greekchild #3
Re: DYNAMIC Dropdown. How to stick on non dynamicchoice?
Hi Lesley, I had this problem too that when someone selected an item from a
dropdownlist and the form was submitted, the results would show in the
recordset but the item they selected from the dropdown would change. I have
the results on the same page too and am using a URL paramater. In the dynamic
list/menu properties there is an option of setting 'select value equal to' In
there put in <%= Request.Querystring('nameofdropdownlist') %> If your not
using URL parameters substitue the Request.Querystring with Request.Form Hope
that helps
greekchild Guest
-
Lesley G #4
Re: DYNAMIC Dropdown. How to stick on non dynamicchoice?
Thanks BIGTIME guys, at last, it's working !!
Where would we be without forums eh?
Thanks again,
Lesley
Lesley G Guest



Reply With Quote

