Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a Paragraph (<p>) using HtmlGenericControl in ASP.NET?

Tags:

asp.net

How to create a pragraph <p> tag in ASP.NET using the HtmlGenericControl class?

like image 690
Nikola Stjelja Avatar asked Dec 24 '08 14:12

Nikola Stjelja


1 Answers

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" );
like image 168
tvanfosson Avatar answered Oct 18 '22 07:10

tvanfosson