Sep
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.
Otherwise,
Two Steps required:
1. Add AsyncPostBackTimeout=”10″ to the <asp:ScriptManager tag everywhere that it occurs in your project as shown below:
<asp:ScriptManager ID=”ScriptManager” runat=”server” EnablePartialRendering=”true” AsyncPostBackTimeout=”10″>
2. Add a bit of javascript towards the end of the page after the </body> tag as shown below:
<script type=”text/javascript” language=”javascript”>
if (Sys != undefined)
{
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}
function EndRequestHandler(sender, args)
{
if (args.get_error() != undefined)
{
var errorMessage = args.get_error().message;
alert(”Sorry, an unexpected error has occured, please retry your last action.”);
args.set_errorHandled(true);
}
}
</script>
It worked for me in IE6 & FF3.
Reference:
http://www.asp.net/ajax/documentation/live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx


