how do i change "class" (style) property on radion button

Discussion in 'ASP .Net' started by George Ter-Saakov, Nov 10, 2006.

  1. I am trying to set class property of the radio button.
    but no mater what i do .NET moves it to <SPAN> tag aroung that radio button.

    So my
    <asp:RadioButton id="chkAllUpdates" cssClass="radio" id="id" runat=server />
    end up beign
    <span class="radio"><input type=radio....></span>
    Which is not the same.
    I tried to add attribute in runtime, or set class="radio". It still moves
    all atributes to <span> tag.

    thanks
    George.
    George Ter-Saakov, Nov 10, 2006
    #1
    1. Advertising

  2. George Ter-Saakov wrote:
    > I am trying to set class property of the radio button.
    > but no mater what i do .NET moves it to <SPAN> tag aroung that radio button.
    >
    > So my
    > <asp:RadioButton id="chkAllUpdates" cssClass="radio" id="id" runat=server />
    > end up beign
    > <span class="radio"><input type=radio....></span>
    > Which is not the same.
    > I tried to add attribute in runtime, or set class="radio". It still moves
    > all atributes to <span> tag.
    >
    > thanks
    > George.
    >


    The web control for radio button doesn't let you set the class on the
    input field. You have to use the html control instead.
    =?ISO-8859-1?Q?G=F6ran_Andersson?=, Nov 11, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Bull

    Adding a radion button at run time

    Robert Bull, Apr 21, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,939
    Robert Bull
    Apr 23, 2004
  2. puja
    Replies:
    1
    Views:
    465
    Eliyahu Goldin
    May 21, 2006
  3. dlo_olb
    Replies:
    2
    Views:
    2,287
    Fredrik Lundh
    Jun 25, 2003
  4. Ken Varn
    Replies:
    0
    Views:
    428
    Ken Varn
    Apr 26, 2004
  5. Jayden
    Replies:
    9
    Views:
    281
    alex23
    Sep 27, 2012
Loading...

Share This Page