Assign CssClass to RadionButonList

Discussion in 'ASP .Net' started by Hardy Wang, Jan 20, 2005.

  1. Hardy Wang

    Hardy Wang Guest

    Hi,
    I have RadioButtonList control with bunch of items inside on my web
    form.
    <asp:RadioButtonList ID="Radio_450" Runat="server"
    RepeatDirection="Horizontal" Visible="True" CssClass="Radio">
    <asp:ListItem >Item 1</asp:ListItem>
    </asp:RadioButtonList>

    The eventually rendered HTML code looks like
    <table id="Radio_450" class="Radio" border="0">
    <tr>
    <td><input id="Radio_450_0" type="radio" name="Radio_450" value="Item 1"
    /><label for="Radio_450_0">Item 1</label></td>
    </tr>
    </table>

    I want to assign class directly on <input type="radio" class="radio"
    ....>, is there a way?

    Thanks for any suggestion!

    --
    WWW: http://hardywang.1accesshost.com
    ICQ: 3359839
    yours Hardy
     
    Hardy Wang, Jan 20, 2005
    #1
    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. Hardy Wang

    How to remove CssClass of a control?

    Hardy Wang, Nov 13, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    991
  2. Max
    Replies:
    1
    Views:
    2,015
  3. Mervin Williams

    Setting CSSClass property of Label control?

    Mervin Williams, Apr 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,522
    Scott
    Apr 6, 2004
  4. JezB

    CssClass attributes

    JezB, May 17, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    1,972
    Eliyahu Goldin
    May 17, 2004
  5. Shane Walters

    Assign CssClass and Read Styles

    Shane Walters, Mar 3, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    89
    Shane Walters
    Mar 3, 2005
Loading...

Share This Page