T
Thomas Reichgruber
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
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