How to determine why my site takes 5 minutes partial postback?
Hi All,
I have a web application which has rather a lot of controls. I also have several buttons (add, edit, save, cancel). Most of my content page is in an update panel so it does not process the whole page. On form submit I have some javascript code which shows a div 50% opacity and an animated gif to prevent users clicking on the buttons more than once whilst it is processing the data to the server. Here is the javascript / call:
Code:
onsubmit="overlay();"
function overlay() {
el = document.getElementById('overlay');
el.style.display = "inline";
document.getElementById('Image2').src = "../Images/loader.gif";
}
function removeoverlay() {
el = document.getElementById('overlay');
el.style.display = "none";
}
The problem is it the form disables like I want it and the giff animates for about 1.5 seconds but it does not enable the form for a further 4 seconds.
Is there anyway to see what it happpening at this point. If I put some watches in my code behind it runs through less than a second so what else can it be doing.
Also on some laptops the form does not fit vertically so there is a scroll bar. When the div is shown on a submit it does not do the full screen including the scroll area.
Re: How to determine why my site takes 5 minutes partial postback?
Hi,
Just a thought. Since your building an asp.net ajax website, have you tried using an UpdateProgress Extender? Rather than creating and
customizing a div/panel with animated gif?
KG
Last edited by KGComputers; Dec 19th, 2013 at 06:16 AM.
Re: How to determine why my site takes 5 minutes partial postback?
Originally Posted by KGComputers
Hi,
Just a thought. Since your building an asp.net ajax website, have you tried using an UpdateProgress Extender? Rather than creating and
customizing a div/panel with animated gif?
KG
Thanks for the reply; can you explain a bit further please? I've never used the updateprocess extender.
Re: How to determine why my site takes 5 minutes partial postback?
Any clues to why my site takes up to 5 seconds on a partial post back? If I put pauses in in my server side code it processes it instantly. Are there any trace tools or is it simply posting back all the html to the client? I don't know and was home an expert out there could help.
Re: How to determine why my site takes 5 minutes partial postback?
In other words... try installing Firebug and then running your site through it to see just what is going on. I can attest to the goodness that is FireBug... I've used it many times myself to discover why a part of a site wasn't rendering completely (in my case it wasn't rendering at ALL!) It will allow you to see the request and the replies and everything passed back and forth. Fiddler is also another great tool... a little harder to work with though, but effective if you cannot use/install Firefox (which is required for Firebug).
Re: How to determine why my site takes 5 minutes partial postback?
Originally Posted by techgnome
In other words... try installing Firebug and then running your site through it to see just what is going on. I can attest to the goodness that is FireBug... I've used it many times myself to discover why a part of a site wasn't rendering completely (in my case it wasn't rendering at ALL!) It will allow you to see the request and the replies and everything passed back and forth. Fiddler is also another great tool... a little harder to work with though, but effective if you cannot use/install Firefox (which is required for Firebug).
-tg
Thank you both; it seems to be uploading several images???