I'm new in ASP.NET and i have a little problem . I have a master page which has a div and i want to edit the height of this div dynamically with code. I don't want to change the href to another css file , i just want to edit this css file.
<div id="div" runat="server" ></div>
#div
{
position:absolute;
background-color:red;
width:200px;
height:150px;
}
I tried this , but doesn't work :
System.Web.UI.HtmlControls.HtmlGenericControl div;
div.Style.Add("height","200px");