T
TCook
Hey All,
I'm trapping a 'submit' button's 'Click' event in a VB.Net code behind class
in order to loop through a 'Select' controls 'option' list as follows:
For Each ThisItem In Me.MySelect.Items
If ThisItem.Selected = True Then
' Do something
End If
Next
I am able to read other controls, such text input, in the code behind class
but my 'select' control is showing
as not having any items present even though there are items shown when it is
displayed.
Is ASP.Net clearing the control before I can gain access to it? Is there
some reason it is showing as being empty (i.e. 0 items)?
Any thoughts?
TC
I'm trapping a 'submit' button's 'Click' event in a VB.Net code behind class
in order to loop through a 'Select' controls 'option' list as follows:
For Each ThisItem In Me.MySelect.Items
If ThisItem.Selected = True Then
' Do something
End If
Next
I am able to read other controls, such text input, in the code behind class
but my 'select' control is showing
as not having any items present even though there are items shown when it is
displayed.
Is ASP.Net clearing the control before I can gain access to it? Is there
some reason it is showing as being empty (i.e. 0 items)?
Any thoughts?
TC