MyPanel.Controls.Add(New LiteralControl("<br>"))
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Thomas Reichgruber" <> wrote in message
news:bvgosr$75c$...
> Hi,
>
> does anybody know how to add a linebreak dynamically to a Panel?
> In the code behind file aspx.cs my webapplication dynamically adds
> WebControls to a Panel defined in the .aspx file. This looks like this:
>
> Button MyButton = new Button();
> MyPanel.Controls.Add(MyButton);
>
> This works great, but if I add another Button (or TextBox, or CheckList or
> ...) ASP.NET puts all Controls in the same line which looks awful.
>
> So I need a way to add a line break (maybe as an special WebControl
object)
> to the Panel.
> Is this possible or is there a way to add HTML code (e.g. <br>) to the
> Panel?
>
> Thanks
> Thomas
>
>
|