i have div in .aspx page:
<div id="mainWrapper" runat="server">
</div>
iwant to append div in run time.
In page load i try
mainWrapper.append("<div id="headerLeft"></div>");
but i am unbale to check if div id="headerLeft" already exist or not.if not then only append div.Thanks.
you could use
mainWrapper.FindControlto check if the div already contains the other one and you add the inner one withmainWrapper.Controls.Addonly if not exists.but anyway, if you do something like this:
you would add the inner div only once.