[advanced search]
Results from the most recent live auction are here.
21 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 05-18-2008, 05:44 AM   · #1
boomers
NamePros Regular
 
Trader Rating: (5)
Join Date: Jun 2005
Posts: 435
NP$: 57.85 (Donate)
boomers has a spectacular aura aboutboomers has a spectacular aura about
HTML Radio Buttons within .NET

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?


Please register or log-in into NamePros to hide ads
__________________
NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service!
boomers is offline   Reply With Quote
Old 05-18-2008, 06:10 AM   · #2
mholt
DNOA Member
 
Name: Matthew Holt
Location: 127.0.0.1
Trader Rating: (75)
Join Date: May 2004
Posts: 4,867
NP$: 17.21 (Donate)
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Radio1.Value maybe?
__________________
FREE: Help With Code

Includes other technical topics:
programming, development, Windows, domain names, and Internet
mholt is offline   Reply With Quote
Old 05-18-2008, 07:25 AM   · #3
boomers
NamePros Regular
 
Trader Rating: (5)
Join Date: Jun 2005
Posts: 435
NP$: 57.85 (Donate)
boomers has a spectacular aura aboutboomers has a spectacular aura about
I believe thats what you use with youre using the .NET radiobutton control... I need to use a HTML radiobutton.
__________________
NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service!
boomers is offline   Reply With Quote
Old 05-18-2008, 07:32 AM   · #4
netzilla
Senior Member
 
netzilla's Avatar
 
Name: Josh Evans
Location: Ohio
Trader Rating: (34)
Join Date: Aug 2005
Posts: 1,704
NP$: 149.75 (Donate)
netzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to behold
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"];
__________________
"If PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich." --- Netzilla 9/14/08
netzilla is offline   Reply With Quote
Old 05-18-2008, 01:07 PM   · #5
mholt
DNOA Member
 
Name: Matthew Holt
Location: 127.0.0.1
Trader Rating: (75)
Join Date: May 2004
Posts: 4,867
NP$: 17.21 (Donate)
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Ah, I see what you mean now. My bad. yes, what netzilla supplied you above should work.
__________________
FREE: Help With Code

Includes other technical topics:
programming, development, Windows, domain names, and Internet
mholt is offline   Reply With Quote
Old 05-18-2008, 02:18 PM   · #6
boomers
NamePros Regular
 
Trader Rating: (5)
Join Date: Jun 2005
Posts: 435
NP$: 57.85 (Donate)
boomers has a spectacular aura aboutboomers has a spectacular aura about
And its always a true/false statement?
__________________
NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service!
boomers is offline   Reply With Quote
Old 05-18-2008, 03:20 PM   · #7
netzilla
Senior Member
 
netzilla's Avatar
 
Name: Josh Evans
Location: Ohio
Trader Rating: (34)
Join Date: Aug 2005
Posts: 1,704
NP$: 149.75 (Donate)
netzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to beholdnetzilla is a splendid one to behold
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"].
__________________
"If PHP is peanut butter...then...MySQL would be the jelly. Together they can make one heck of a good sandwich." --- Netzilla 9/14/08
netzilla is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
http://www.mobisitetrader.com/ Special Offer http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 06:15 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0