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...">

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
source share
3 answers

You can add it as an HtmlGenericControl :

 yourPlaceholder.Controls.Add(new HtmlGenericControl("br")); 
+13
source share

Or use Literal Control ( new LiteralControl("<br />") )

+8
source share

Just use literalcontrol

 yourPlaceholder.Controls.Add(new LiteralControl("<br />")) 
+3
source share

All Articles