c# - How can I add a line break or html inside of a Panel? -
I am trying to create a menu with the following code. But I can not understand how each linkbutton will be displayed on different lines.
MenuPanel.Controls.Clear (); Förch (form list f form) {if (f.IsActive == "y") {FormUserControl fc = (FormUserControl) LoadControl (f.StartControl); Linkbutton lb = new link button (); Lb.Text = fc.Title; MenuPanel.Controls.Add (pound); // I want some kind of line break}}
to insert the square Use a line break ...
MenuPanelControlSaidAd (new Little Control ("
Or use CSS to create your link block-level elements ...
# menu one {display: block; }
Comments
Post a Comment