i have an asp.net web application.
there is a master page and content pages.
my startup page is default.aspx, which is a content page. i have a div portion in my default.aspx page.
Now i want to hide this div Portion when the Page_Load().
i have written a javascript, & call it in the
<Body onload="javascript:setVisibility('id','none') ">
, it works but, some time, it shows the div for 2-3 seconds & then hide it.
Expand|Select|Wrap|Line Numbers
- //javascript is:---------->
- function setVisibility(id,visibility)
- {
- document.getElementById(id).style.display = visibility;
- }
- //------------------------------>
please help me.
thanx ,
neel