Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you create an <h1> tag programmatically in ASP.NET?

Tags:

I'm trying to generate some html programmatically in my code behind for a user control I'm designing.

I've been looking around, but can't seem to figure out how to dynamically generate some h1 tags for content I'll be displaying.

Is it just a Label with a special property set?

like image 230
Mike Corcoran Avatar asked Jun 25 '12 15:06

Mike Corcoran


1 Answers

var h1 = new HtmlGenericControl("h1"); h1.InnerHtml = "header content"; 
like image 76
Pein Avatar answered Sep 28 '22 11:09

Pein