How to create a pragraph <p> tag in ASP.NET using the HtmlGenericControl class?
HtmlGenericControl para = new HtmlGenericControl ( "p" );
Although I would leave it as a container control for the extra properties/methods.
HtmlContainerControl para = (HtmlContainerControl)new HtmlGenericControl ( "p" );
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