How To Get Selected Text From Html Select In Asp.net Code-behind?
I use html Select in apsx page and bind it to data in database as dropdown:
Solution 1:
try this dd.Items[dd.SelectedIndex].Text
Solution 2:
myvalue = dd.SelectedText;
Edit: For a databound htmlselect you can try:
myvalue = dd.DataSource[dd.SelectedIndex][dd.DataTextField].ToString();
Post a Comment for "How To Get Selected Text From Html Select In Asp.net Code-behind?"