HtmlGenericControl for br tag
ASP.NET
3
Posts
2
Posters
0
Views
1
Watching
-
I created a br as server control using HtmlGenericControl. It renders as
. I dont want this behavior. It should render as
. What is the way to acheive it? -
I created a br as server control using HtmlGenericControl. It renders as
. I dont want this behavior. It should render as
. What is the way to acheive it? -
You can simply use a literal control instead:
LiteralControl lit = new LiteralControl("<br>");
this.Controls.Add(lit);Ok thanks for your great help. Regards, Syed