smithmrk
asked on
ASP.net (2005) - Hide Update Panel and controls in it while updating
OK, I hope someone can help with this.
I have an update panel with tables, controls, etc.
When the page loads I have timer so the page calling the new page doesn't hang while the data loads...so I have a timer set to load the data after a half second. This all works fine, the problem seems to be when the page loads that 1/2 second shows the stuff in the UpdatePanel before it disappears based on the javascript I have setup (see below). My question is why does it show for that 1/2 second and how can I hide it until it has finished loading?
<script type="text/javascript">
function pageLoad()
{
Sys.WebForms.PageRequestMa nager.getI nstance(). add_beginR equest(beg inRequestH andler);
Sys.WebForms.PageRequestMa nager.getI nstance(). add_endReq uest(endRe questHandl er);
}
function beginRequestHandler(sender , args)
{
document.getElementById('< %=UpdatePa nel_Billin gCodes.Cli entID %>').style.display="none";
}
function endRequestHandler(sender, args)
{
</script>
document.getElementById('< %=UpdatePa nel_Billin gCodes.Cli entID %>').style.display="";
}
Mark
I have an update panel with tables, controls, etc.
When the page loads I have timer so the page calling the new page doesn't hang while the data loads...so I have a timer set to load the data after a half second. This all works fine, the problem seems to be when the page loads that 1/2 second shows the stuff in the UpdatePanel before it disappears based on the javascript I have setup (see below). My question is why does it show for that 1/2 second and how can I hide it until it has finished loading?
<script type="text/javascript">
function pageLoad()
{
Sys.WebForms.PageRequestMa
Sys.WebForms.PageRequestMa
}
function beginRequestHandler(sender
{
document.getElementById('<
}
function endRequestHandler(sender, args)
{
</script>
document.getElementById('<
}
Mark
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Mark