Assign CssClass to RadionButonList

H

Hardy Wang

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!
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top