If I have an asp.net web page with placeholders, what is the simplest way to wrap a line break
into a control that I can pass to the Add function of the placeholder?
You could add it as an HtmlGenericControl
:
yourPlaceholder.Controls.Add(new HtmlGenericControl("br"));
Or use a Literal Control (new LiteralControl("<br />")
)
Just use literalcontrol
yourPlaceholder.Controls.Add(new LiteralControl("<br />"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With