DYNAMIC Dropdown. How to stick on non dynamic choice?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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'...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139