I would like to add some paragraphs or new lines or words dynamically but I want to make gaps between every part and the other. How is it possible to do that in the c# code page?
5 Answers
You can use LiteralControl to add HTML tags like that :
Page.Controls.Add(new LiteralControl("<p>New<br />Line</p>"));
You can do this using HttpModule. HttpModule can intercept request and response and modify as you need.
Comments
Maybe this is the proper way: http://msdn.microsoft.com/en-us/library/620b4fzf(VS.71).aspx
So if you like to add what a paragraph with a break inside:
HtmlGenericControl paragraph = new HtmlGenericControl("p");
paragraph.Controls.Add(new HtmlGenericControl("br"));
Page.Controls.Add(paragraph );