Showing posts with label Tech. Show all posts
Showing posts with label Tech. Show all posts

Monday, May 11, 2009

Sys.WebForms.PageRequestManagerTimeoutException .Net error work around

Last week I had a problem when I tried to use advance smart search panel in my

code. I got this error: "Sys.WebForms.PageRequestManagerTimeoutException.

The server request timed out" from the Ajax Extension framework. Its occurred

because the smart search took a little longer time (something like 2 minutes) and

the Ajax Extension Callback framework had a timeout.


How to solve this problem?
To solve this problem we can increase the timeout. You can change the timeout

time by adding a new property to the script manager control. This property is

called AsyncPostBackTimeOut and it can help us to define the number of

seconds before the request will throw a request timeout exception*.


For example if you want that the timeout will take maximum 10 minutes your

code should be look like this:


<asp:ScriptManager ID="ScriptManager1" runat="server"

AsyncPostBackTimeOut="600" >

asp:ScriptManager>

* The default value of the AsyncPostBackTimeOut property is 90 seconds.

Monday, May 4, 2009

Microsoft fails yet another time

Microsoft's Calculator fails in following calculation.

Go to Start --> Run --> type Calc and Check the following...

2704/50 = 54.08 Works Fine

2704/51 = 53.01960784 Works Fine

2704/52 = ????? Try yourself Doesn't Work !!!

2704/53 = 51.01886792 Works Fine

2704/54 = 50.07407407 Works Fine

Microsoft Calculator Failed .. .. ..

Try it .... !!