You could add a LiteralControl with the text <br><br> between adding the
two controls....



On Mon, 14 Jul 2003 22:45:48 GMT, Matt <metal@rocks.com> wrote:
> Hi,
>
> I'm creating radio buttons "on the fly" for a page, but i need to
> format it a little bit. What i want to do is to add line breaks
> between RadioButtonList items. Example :
>
> RadioButtonList ListeRdBt = new RadioButtonList();
>
> ListeRdBt.ID = "ListeRdBt";
> ListeRdBt.Items.Add(new ListItem("Button 1", "1"));
> ListeRdBt.Items.Add(new ListItem("Button 2", "2"));
>
> PHPresent.Controls.Add(ListeRdBt); // This is a PlaceHolder control
>
>
> In this example i want to put two <br><br> after the first item added
> in the RadioButtonList, so that the radio buttons are separated by two
> line breaks. I know i can use the CellSpacing property, but this also
> affects the horizontal spacing, which i don't want to. Any trick to do
> this? Thanks for any help!
>


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET