Wednesday, 5 August 2015

How to change the CSS class for a div in code-behind?

If your div has runat="server" then you directly use this:

divId.Attributes["class"] = "classname";

No comments:

Post a Comment

Thanks for comments.