DotNet Webcontrols: HtmlInputRadionButton value

  • fabian / 204 / Mon, 01 Mar 2010 18:19:00 GMT / 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:

    htmlinputradionbutton, value, dotnet, webcontrols, .net

  • http://dotnet.itags.org/webcontrols/96693/«« Last Thread - Next Thread »»
    1. 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 |

    2. 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 |