Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

ASP.NET AJAX Timer + UpdatePanel + Server Request Timeouts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
webdevaccount@gmail.com - 21 Jun 2007 19:26 GMT
Hello,

I am using a Timer and an UpdatePanel control. The Timer is set to
1000 milliseconds, and therefore results in many server request
timeouts error (logical). The Server Request Timeout error does not
result in a redirection to a blank error page, but rather a pop-up
message describing the error appears.

My Question: Is there any way to catch this error and prevent it from
being displayed?

Thank you for your time!
Milosz Skalecki [MCAD] - 22 Jun 2007 11:21 GMT
Hi there,

I reckon you could handle endRequest event of the PageRequestManager class:

<script type="text/javascript">

    function onEndRequest(sender, e)
    {
        var err = e.get_error();
   
        if (err != null &&
            err.name === 'Sys.WebForms.PageRequestManagerTimeoutException')
        {
            e.set_errorHandled(true);
        }
    }

    Sys.WebForms.PageRequestManager.instance.add_endRequest(onEndRequest);

</script>

hope this helps
Signature

Milosz

> Hello,
>
[quoted text clipped - 8 lines]
>
> Thank you for your time!
urmilshah@gmail.com - 02 Jul 2007 18:53 GMT
I am using update panel and timer it shows me
Sys.WebForms.PageRequestManagerTimeoutException message after 90
seconds which is correct i want to show user understandable message to
the user how can i do that?

- Urmil

On Jun 22, 4:21 am, Milosz Skalecki [MCAD] <mily...@DONTLIKESPAMwp.pl>
wrote:
> Hi there,
>
[quoted text clipped - 36 lines]
>
> - Show quoted text -

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.