Passing values to a RadioButtonList doesn't work
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have a radio button list (or it could be a pair of individual radio buttons) that receive a value passed by a session variable from a previous page via the statement: radioButton.selectedItem.value = context.items("variable") Then, after user input, the radio button value is passed to an UPDATE statement with the @radButton variable: cmdUpdate.parameters.add( "@radButton", radioButton.selectedItem.text ) The HTML code is: When I make Selected="false" in the asp:ListItem Value="No" ... it throws the following error: Object reference not set to an instance of an object. Any ideas?