I\'m adding some content to a given web page from code behind. When I want to add a break after some text, I try to do that this way:
pDoc.Controls.Add(New L
Actually you can use;
pDoc.Controls.Add(new LiteralControl("
"));
Whereas new HtmlGenericControl("br")
adds two
, this will only add
tag to your HTML so that you just have 1 space line.
In this picture I added those breaks with that code block.
Also similar question here: Server control behaving oddly