B boomers Established Member โ 20 โ Impact 4 May 18, 2008 616 views 6 replies #1 Hey - I have to use HTML radio buttons on one of my pages. How do I tell which has been selected using my .net code behind?
Hey - I have to use HTML radio buttons on one of my pages. How do I tell which has been selected using my .net code behind?
B boomers Established Member โ 20 โ Impact 4 May 18, 2008 #3 I believe thats what you use with youre using the .NET radiobutton control... I need to use a HTML radiobutton.
I believe thats what you use with youre using the .NET radiobutton control... I need to use a HTML radiobutton.
netzilla VIP Member VIP โ 20 โ Impact 55 May 18, 2008 #4 I am assuming this radio button is on a form? If so then you should be able to use this code to access the value once the form is submitted: Code: Request.Form["name_of_radio_button_here"];
I am assuming this radio button is on a form? If so then you should be able to use this code to access the value once the form is submitted: Code: Request.Form["name_of_radio_button_here"];
U user-7256 VIP Member VIP โ 20 โ Impact 111 May 18, 2008 #5 Ah, I see what you mean now. My bad. yes, what netzilla supplied you above should work.
B boomers Established Member โ 20 โ Impact 4 May 18, 2008 #6 And its always a true/false statement?
netzilla VIP Member VIP โ 20 โ Impact 55 May 18, 2008 #7 What that code does is allows you to retrieve the value of the radio button thats specified in the html...its not a statement. You can take a variable and assign it the value of Request.Form["name_of_radio_button_here"].
What that code does is allows you to retrieve the value of the radio button thats specified in the html...its not a statement. You can take a variable and assign it the value of Request.Form["name_of_radio_button_here"].