Dim ename As String = DropDownList.SelectedItem.Value
this statement is'nt working any help is appreciated!!
Dim ename As String = DropDownList.SelectedItem.Value
this statement is'nt working any help is appreciated!!
I'm not sure if this is your problem, but if you're looking for the text of the item (instead of the value) you need DropDownList.SelectedItem.Text
.
To store in session, you can just use
Session("yourKey") = DropDownList.SelectedItem.Value