B
Brian
i have a radiobuttonlist. I want to check to see if a button has been
selected then get the value.. This was my code;
----------------------------------------------------------------
Dim NewGender as String
if (Gender.SelectedItem.Value <> "") then
NewGender = Gender.SelectedItem.Value
else
NewGender = ""
end if
If nothing is selected, I get the following error..
System.NullReferenceException: Object reference not set to an instance
of an object.
thank in advance..
selected then get the value.. This was my code;
----------------------------------------------------------------
Dim NewGender as String
if (Gender.SelectedItem.Value <> "") then
NewGender = Gender.SelectedItem.Value
else
NewGender = ""
end if
If nothing is selected, I get the following error..
System.NullReferenceException: Object reference not set to an instance
of an object.
thank in advance..