Home » Category » DotNet Webcontrols

DotNet Webcontrols: HtmlInputRadionButton value

204| Wed, 28 May 2008 22:02:00 GMT| fabian| Comments (2)
I create HtmlInputRadionButton objects dynamically in codebihind. The
buttons have the same name.

Now I need the value of the checked button.

Is there a way to get this?

Thanks for help

Fabian

Keywords & Tags: htmlinputradionbutton, value, dotnet, webcontrols, .net

URL: http://dotnet.itags.org/webcontrols/96693/
 
«« Prev - Next »» 2 helpful answers below.
How about a request.forms['name of button here']
the effect of this code is to return the checked radio button in the group
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Fabian" <fm...n-o-s-p-a-m.itacs.de> wrote in message
news:erVG2WZlEHA.324...TK2MSFTNGP11.phx.gbl...
>I create HtmlInputRadionButton objects dynamically in codebihind. The
> buttons have the same name.
> Now I need the value of the checked button.
> Is there a way to get this?
>
> Thanks for help
> Fabian
>


alvinbruneymvp | Wed, 28 May 2008 22:03:00 GMT |

Thanks for answer,

but I cant use Request.Form method because the rb is located in an user
control.
Now, I use an RadioButton object with group property, and iterate the
HttpRequest form keys to get the rb ID.

It works fine :-)

"Alvin Bruney [MVP]" <vapor at steaming post office> schrieb im Newsbeitrag
news:eo2u94alEHA.3496...TK2MSFTNGP12.phx.gbl...
> How about a request.forms['name of button here']
> the effect of this code is to return the checked radio button in the group
> --
> Regards,
> Alvin Bruney
> [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
> Got tidbits? Get it here... http://tinyurl.com/27cok
> "Fabian" <fm...n-o-s-p-a-m.itacs.de> wrote in message
> news:erVG2WZlEHA.324...TK2MSFTNGP11.phx.gbl...
>


fabian | Wed, 28 May 2008 22:04:00 GMT |

DotNet Webcontrols Hot Answers

DotNet Webcontrols New questions

DotNet Webcontrols Related Categories