How to populate the form fields from another drop down list

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default How to populate the form fields from another drop down list

    Hello,

    I would like to populate form fields from one drop down
    list in the same page. The drop down list's value is from
    SQL database. When user choose one of the value, I would
    like to populate the all of the other fields from Database
    according to the user's selection? How can I achieve
    this?

    Thank you very much in advance for your help.

    Li

    Li Zhang Guest

  2. Similar Questions and Discussions

    1. Populate form fields with Unicode data using FDF Toolkit
      Does anyone know about populating PDF Form dynamically with Unicode (read Arabic) data?! It displays English data correctly but displays jumbled data...
    2. drop down menus clashing with form fields on wintel
      as per title - I use the built in drop down menu feature to create. The page requires a form with fields directly below. On a mac the drop downs -...
    3. How to populate drop down list from one field withdelimiters
      Hello How can we populate a drop down dynamically from the database by splitting one row of data . I have data in a field which is seperated by...
    4. Display multiple fields in a drop down list in datagrid
      How would I display the value of multiple fields in a drop down list in a bound datagrid. I tried changing the DataTextField to include both...
    5. Populate form values based on previous same form fields
      This message is cross posted in alt.comp.lang.php & comp.lang.javascript I have a form for a user to input an establishment's hours and what time...
  3. #2

    Default Re: How to populate the form fields from another drop down list

    you either have to pass all the possible form option values across on 1st
    page load then use some javascript to detect change of drop down and the
    populate the form fields form teh already passed info - ask in a Client side
    NG

    or

    use the OnChange event of the drop down to submit the form (javascript), and
    then as a result of proccessing the form (other than by the normal Submit
    button) send back the specific values to be plugged into the other form
    fields based on current value of drop down control passed to form processing
    page


    "Li Zhang" <lizhang@cox.net> wrote in message
    news:020901c37c1f$984ed740$a001280a@phx.gbl...
    > Hello,
    >
    > I would like to populate form fields from one drop down
    > list in the same page. The drop down list's value is from
    > SQL database. When user choose one of the value, I would
    > like to populate the all of the other fields from Database
    > according to the user's selection? How can I achieve
    > this?
    >
    > Thank you very much in advance for your help.
    >
    > Li
    >

    only_me 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