I am using aspx. If I have HTML as follows:
I am hoping to dynamically add a css class through the
If you want to add attributes, including the class, you need to set runat="server" on the tag.
runat="server"
Then in the code-behind:
classMe.Attributes.Add("class", "some-class")