I\'m trying to grab a div\'s ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control?
Make sure that your div is set to runat="server", then simply reference it in the code-behind and set the "class" attribute.
...content...
Code-behind
formSpinner.Attributes["class"] = "class-name";