Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeout

来源:互联网 发布:260工程数据 编辑:程序博客网 时间:2024/05/12 09:12

Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeoutException: The  Server  request  tiemd  out ".

To solve this problem we can increase the timeout. We can change the timeout time by adding a new property to the scriptmanager 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="400" >

</asp:ScriptManager>    

 The default value of the AsyncPostBackTimeOut property is 90 seconds.

原创粉丝点击