Custom RadioButtonList and modifying HTML?

D

Dave

The HTML generated by the RadioButtonList contains a table structure as:

<table id="rbList1" border="0">
<tr>
<td>rb1</td><td>rb2</td><td>rb3</td>
</tr>
</table>

If I create a custom control inherited from the RadioButtonList, can modify
the table (including <td>) elements before it's rendered? I want to add style
attributes to the <td> in order to have equal spacing between the
radiobuttons when displayed horizontally?

Dave.
 
J

jebecker

Well, you could override the Render method in your derived class, or build a
Control Adapter for the base control to do the re-rendering.
 

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
474,268
Messages
2,571,095
Members
48,773
Latest member
Kaybee

Latest Threads

Top