htmlgenericcontrol class c# code example Example: htmlgenericcontrol class c# dynDiv.Attributes["class"] = "myCssClass";