Custom RadioButtonList and modifying HTML?

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Custom RadioButtonList and modifying HTML?

    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.
    Dave Guest

  2. Similar Questions and Discussions

    1. Custom HTML Items
      I just started administering contribute and was wondering if I were to make a contentbox "div with an id styles by CSS" could a person using...
    2. Custom RadioButtonList with Attribute support for ListItem
      I found the listitem class was sealed, and can't get tooltips for radio button in a radionbuttonlist, apparently this is by design.. ...
    3. Parsing InnerProperties after modifying HTML (design time)
      Hi all, In my custom control, I have a property derived from BaseCollection. At design time, the property shows as (Collection) in the Properties...
    4. VS.NET hangs momentarily when modifying a control's ID within HTML View
      I am using VS.NET 2002. Whenever I am in HTML view and i modify let's say an asp hyperlink's ID to myHyperlink. After I am done typing my text., the...
    5. custom layout : RadioButtonList
      Hi! I'm wondering how I can add extra html to a radiobuttonList, so that I can control how: -the whole radioButtonList is rendered. -each of...
  3. #2

    Default RE: Custom RadioButtonList and modifying HTML?

    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.

    "Dave" wrote:
    > 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.
    jebecker@_NO_SPAM_.pointroll.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139