How to add <br/"> to asp.net placeholder
If I have an asp.net placeholder webpage, whats the easiest way to wrap a line break
to a control that I can pass to the add placeholder function?
+6
chuck taylor
source share3 answers
You can add it as an HtmlGenericControl :
yourPlaceholder.Controls.Add(new HtmlGenericControl("br")); +13
Andrew Hare
source shareOr use Literal Control ( new LiteralControl("<br />") )
+8
dko
source shareJust use literalcontrol
yourPlaceholder.Controls.Add(new LiteralControl("<br />")) +3
user1546306
source share