Re: Spacing radio buttons in a PlaceHolder

Discussion in 'ASP .Net' started by Craig Deelsnyder [MVP], Jul 15, 2003.

  1. 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 <> 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
     
    Craig Deelsnyder [MVP], Jul 15, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KatB
    Replies:
    1
    Views:
    610
    Lucas Tam
    Oct 5, 2004
  2. Scott D Johnson
    Replies:
    1
    Views:
    1,132
    Scott D Johnson
    Sep 27, 2006
  3. nail

    Build control in a placeholder or like a placeholder

    nail, Sep 10, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    371
  4. Dr. Leff
    Replies:
    3
    Views:
    330
    David Mark
    Oct 15, 2007
  5. Dr. Leff
    Replies:
    3
    Views:
    252
    David Mark
    Oct 15, 2007
Loading...

Share This Page