HtmlInputRadionButton value

F

Fabian

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
 
A

Alvin Bruney [MVP]

How about a request.forms['name of button here']
the effect of this code is to return the checked radio button in the group
 
F

Fabian

Thanks for answer,

but I can´t 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 said:
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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,807
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top