Changing CSS style from ASP.NET code
asp.net, css, html, vb.net
Solution
C#, because I don't want to typo the VB syntax.
Markup:
<div runat="server" id="divControl">...</div>
Class of the Page:
protected System.Web.UI.HtmlControls.HtmlGenericControl divControl;
OnLoad/Other function:
divControl.Style.Add("height", number / anotherNumer);
Problem
Possible Duplicate: Change CSS Dynamically I need to change the height of a div container(CSS Property Height) from ASP.NET code (VB). How can I do that?