Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Assign CssClass to RadionButonList

Reply
Thread Tools

Assign CssClass to RadionButonList

 
 
Hardy Wang
Guest
Posts: n/a
 
      01-20-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign CssClass and Read Styles Shane Walters ASP .Net Web Controls 0 03-03-2005 05:27 AM
CssClass attributes JezB ASP .Net 5 05-17-2004 10:43 AM
Setting CSSClass property of Label control? Mervin Williams ASP .Net 1 04-06-2004 09:38 PM
CssClass not working in code behind Max ASP .Net 1 01-03-2004 07:58 PM
How to remove CssClass of a control? Hardy Wang ASP .Net 1 11-13-2003 03:30 PM



Advertisments