0

how to fill text boxes based on drop down selection
i have a table:

empid  empshortname  empname empdesignation

when i select empshortname from drop down that should be fill the empname in one text box, empdesignation in another text box like this i want to fill in many text boxes based on single selection

Thanks and regards
sreedhar

Sam DeHaan
  • 10,246
  • 2
  • 40
  • 48
Sreedhar goud
  • 81
  • 2
  • 5
  • 15

2 Answers2

0

This should get you going :) http://api.jquery.com/change/

Rohan Büchner
  • 5,333
  • 4
  • 62
  • 106
0

I understand that you want to take the value empshortName from the dropdown and according to it select the others properties from DB or somewhere.. so, to get the value of the selected empshortName write an event function: SelectedIndexChanged and there write:

    string empName=dropdown.Items[dropdown.selectedIndex].value;//to get the key value 
 or: 
    string empName=dropdown.Items[dropdown.selectedIndex].Text; //to get the display text
st mnmn
  • 3,555
  • 3
  • 25
  • 32