runat="server"
id
<div id="div1" runat="server"></div>
Page_Load() { divl1.Disabled = true; }
<div id="div1" class="<%=displayclass%>"></div> add style class .dclass { display:none; } code ---- public string displayclass ; page load ----- displayclass ="dclass"; // display none if you want to display in any other place set displayclass="";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)