Unstoppable Domains โ€” Expired Auctions

HTML Radio Buttons within .NET

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

boomers

Established Member
Impact
4
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Radio1.Value maybe?
 
0
•••
I believe thats what you use with youre using the .NET radiobutton control... I need to use a HTML radiobutton.
 
0
•••
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"];
 
0
•••
Ah, I see what you mean now. My bad. yes, what netzilla supplied you above should work.
 
0
•••
And its always a true/false statement?
 
0
•••
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"].
 
0
•••
Appraise.net
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back