HtmlInputRadioButton Value

  • Thread starter Thread starter Fabian
  • Start date Start date
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
 
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?

See HtmlInputRadionButton.Checked -- and BTW, there is an ASP.NET group:
news://microsoft.public.dotnet.framework.aspnet

Cheers,
 
Hi Fabian,

If you create a control dinamically ( from code ) you need to recreate them
in the postback. If this is much trouble for you you could always create
them as "regular" html radio buttons and access them using Page.Request
collection, just as you used to do it in ASP. I have find that sometimes is
easier to use them under this kind of situations.

Cheers,
 
Back
Top