SyntaxFix
Write A Post
Hire A Developer
Questions
To add a class to a div that is generated via the HtmlGenericControl way you can use:
HtmlGenericControl
div1.Attributes.Add("class", "classname");
If you are using the Panel option, it would be:
Panel
panel1.CssClass = "classname";