473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.NET AJAX Timer + UpdatePanel + Server Request Timeouts

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!

Jun 21 '07 #1
2 8025
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_endRe quest(onEndRequest);

</script>

hope this helps
--
Milosz
"we***********@gmail.com" wrote:
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!

Jun 22 '07 #2
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,

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_endRe quest(onEndRequest);

</script>

hope this helps
--
Milosz

"webdevacco...@gmail.com" wrote:
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!- Hide quoted text -

- Show quoted text -

Jul 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Grant Merwitz | last post by:
Hi I am trying to implement the Microsoft Ajax.NET extensions to perform a lookup on a key press of a text box. What this will do is once a user enters a letter into the textbox, this will...
8
by: =?Utf-8?B?SmFrb2IgTGl0aG5lcg==?= | last post by:
I am new to AJAX. I am applying AJAX to a current web solution to get the "instant behaviour". On my main page I have two sets of criteria: Specific and Wide. Each set is placed in a View...
1
by: =?Utf-8?B?TWlrZSBNY0FsbGlzdGVy?= | last post by:
I have not been able to find anything about this problem, so it must be configuration on our server, somehow... What we are observing is on Windows Server 2003/IIS 6 our AJAX UpdatePanels are...
1
by: SachinSachin | last post by:
Hi All, I am implementing a custom gridview control, that emits some javascript to blink a row whenever a new row is added in gridview. The gridview is inside the <asp:updatepanel> for...
7
by: MikeB | last post by:
Hello All, I am new to ajax and wanted to start by trying something simple. I have a web form with an updatepanel and then inside the update panel I have a listbox. Then outside of the updatepanel...
1
by: Chris Zopers | last post by:
Hello, I have an asp:UpdatePanel with some controls in it. The UpdatePanel has a Timer as a trigger and a button inside the UpdatePanel as a trigger. All works fine, but sometimes I get the...
3
by: =?Utf-8?B?Y21lZWsxXzE5OTk=?= | last post by:
Hello, On a webpage, create an UpdatePanel with two DropDownLists. Set AutoPostBack of DropDownList1 to true. In the SelectedIndexChanged method, refill DropDownList2 and set the focus to...
4
by: Peter | last post by:
ASP.NET 2.0 I have an AutoCompleteExtender which works fine- I am using name, id pair in the WebService , but what I am trying to do is: once the user selects an item from the...
18
by: btreddy | last post by:
Hii all, In one my child page i've an updatepanel which contains a gridview .The gridview displays huge amt of data (~3 pages of data) and the updatepanel refreshes for every 1 sec,for tht i've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.