Problem in getting selected value from dropdownlist when using Array as datasource
Hi All,
I have used a string array as datasource for a dropdownlist. When getting the selected value from the dropdownlist in the postback, I am getting always the first value even though some other item is selected. Can any one help me to find a soultion for this problem?
When you submit the page its posting back, rebinding the drop down list. Simple put "If Not IsPostBack then" into your page load, something like below.
Sub Page_Load()
If Not IsPostBack Then
Page Load Stuff
End If
End Sub