Problem: Working with ASP.net , I got stuck working with dropdownlist . I chose the first item which would be copied to a textbox using onSelectedIndexChanged() . But it fails. How get the text value after clicking on dropdownlist on first click ?
Solution:
To do this,
change your sql query ( MS SQL Server 2005) to the following pattern :
Note: If your data source is binded then this might not work . In this case , double click on the event "DataBinding" of the dropDownList.
and enter this code :
No comments:
Post a Comment