I need some help tracing through this code. What I want to do is set a session value based on the selected value of a radiobuttonlist. That value will set another value on the next page. The next page can only use one session value, so I don't want multiple sessions set from the radiobuttonlist being selected multiple times. If the user makes a selection on the radiobuttonlist, and then changes the selection, how do I check if a session value exists and if it does, then replace it with the new selection? How should my code change?
Dim selVal As Integer = RadioButtonList1.SelectedValue If selVal = -1 Then Label1.Text = "Please select a Membership type." Else Select Case selVal Case selVal = 0 Session.Add("MemType0", selVal) Case selVal = 1
View Complete Post