samiuddin_adse — 2011-01-14T05:20:21-05:00 — #1
how to populate the other fields by executing a query depending on the value selected in the list box.
I have a list box which is getting the values from the database.
if the user selected st01 in the list it should populate the the student name and branch in the below two text boxes
chris_upjohn — 2011-01-14T06:12:11-05:00 — #2
From how you explained it this is what you want...
User selects a value from the drop down box
Upon selecting a value 2 text boxes are then populated with data synced to that user
samiuddin_adse — 2011-01-14T06:29:45-05:00 — #3
Thanks for your response,
when the student selected the Id from the list box then i want to populate his name and branch from the database table in the below two form fields
please provide me the code
davemaxwell — 2011-01-14T07:48:00-05:00 — #4
I think it would be more beneficial to you in the long run if you tried to figure it out. SgtLegend gave you the terms to search for, either in google or here. They will lead you down the right path.
chris_upjohn — 2011-01-14T07:51:00-05:00 — #5
Right now i have a snippet of untested code but it does help a lot more to search for the correct code elements yourself as in my personal opinion you get no where if you copy what others write.