Home » Category » DotNet

DotNet: HTMLInputRadioButton Question

204| Wed, 28 May 2008 14:53:00 GMT| roshawn| Comments (1)
Hi,

I have three radio button controls on my form (they are HTMLInputRadio
buttons). I've set each controls Name attribute to "RadioGroup" to
establish them as a group of controls. How can I determine which radio
button is checked via code without any of the controls needing the
"runat='server'" attribute?

Thanks,
Roshawn

Keywords & Tags: htmlinputradiobutton, dotnet, .net

URL: http://dotnet.itags.org/dotnet-tech/313845/
 
«« Prev - Next »» 1 helpful answers below.
you give each radio button a unique value. then on postback the browser will
send the control and its name/value pair if selected. if none are selected,
no value pair is sent. the name/value pairs are in the request.
-- bruce (sqlwork.com)

"Roshawn" <udrago...bellsouth.net> wrote in message
news:eEiOpBlfEHA.3520...TK2MSFTNGP10.phx.gbl...
> Hi,
> I have three radio button controls on my form (they are HTMLInputRadio
> buttons). I've set each controls Name attribute to "RadioGroup" to
> establish them as a group of controls. How can I determine which radio
> button is checked via code without any of the controls needing the
> "runat='server'" attribute?
> Thanks,
> Roshawn
>


brucebarker | Wed, 28 May 2008 14:55:00 GMT |

DotNet Hot Answers

DotNet New questions

DotNet Related Categories