 |
Results from the most recent live auction are here.
19 members in the live chat room. Join Chat!
| |
05-18-2008, 05:44 AM
|
· #1 | | NamePros Regular Join Date: Jun 2005
Posts: 439
NP$: 59.85 ( Donate)
| 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?
__________________ NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service! InThePremiership - The most comprehensive football news portal. Updated hourly.
|
| |
05-18-2008, 06:10 AM
|
· #2 | | DNOA Member Name: Matthew Holt Location: 127.0.0.1 Join Date: May 2004
Posts: 4,869
NP$: 17.21 ( Donate)
| Radio1.Value maybe? |
| |
05-18-2008, 07:25 AM
|
· #3 | | NamePros Regular Join Date: Jun 2005
Posts: 439
NP$: 59.85 ( Donate)
| 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! InThePremiership - The most comprehensive football news portal. Updated hourly.
|
| |
05-18-2008, 07:32 AM
|
· #4 | | Senior Member Name: Josh Evans Location: Ohio Join Date: Aug 2005
Posts: 1,704
NP$: 149.75 ( Donate)
| 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
|
| |
05-18-2008, 01:07 PM
|
· #5 | | DNOA Member Name: Matthew Holt Location: 127.0.0.1 Join Date: May 2004
Posts: 4,869
NP$: 17.21 ( Donate)
| Ah, I see what you mean now. My bad. yes, what netzilla supplied you above should work. |
| |
05-18-2008, 02:18 PM
|
· #6 | | NamePros Regular Join Date: Jun 2005
Posts: 439
NP$: 59.85 ( Donate)
| And its always a true/false statement?
__________________ NewsToolkit - Add the latest news headlines to your site, automatically kept updated... a FREE service! InThePremiership - The most comprehensive football news portal. Updated hourly.
|
| |
05-18-2008, 03:20 PM
|
· #7 | | Senior Member Name: Josh Evans Location: Ohio Join Date: Aug 2005
Posts: 1,704
NP$: 149.75 ( Donate)
| 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
|
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |