S
Steve Richter
I am using HtmlGenericControl to render html tags like <div> and
<span>.
the problem is the <br> tag does not render correctly when I use this
method. ( it renders as <br></br>, which is seen by the browser as 2
consecutive <br> tags.
public class Html_br : HtmlGenericControl
{
public Html_br()
: base("br")
{
}
}
How can I render the <br> tag so that I can use Controls.Add to add a
<br> tag to the output of my user control?
thanks,
-Steve
<span>.
the problem is the <br> tag does not render correctly when I use this
method. ( it renders as <br></br>, which is seen by the browser as 2
consecutive <br> tags.
public class Html_br : HtmlGenericControl
{
public Html_br()
: base("br")
{
}
}
How can I render the <br> tag so that I can use Controls.Add to add a
<br> tag to the output of my user control?
thanks,
-Steve