ASP.NET UpdatePanel Time Out

后端 未结 7 711
天命终不由人
天命终不由人 2020-12-08 02:21

I\'m making a request from an UpdatePanel that takes more then 90 seconds. I\'m getting this timeout error:

Microsoft JScript runtime err

相关标签:
7条回答
  • 2020-12-08 03:06

    In my case the ScriptManager object was created in a Master Page file that was then shared with the Content Page files. So to change the ScriptManager.AsyncPostBackTimeout property in the Content Page, I had to access the object in the Content Page's aspx.cs file:

    protected void Page_Load(object sender, EventArgs e)
    {
         . . . 
         ScriptManager _scriptMan = ScriptManager.GetCurrent(this);
         _scriptMan.AsyncPostBackTimeout = 36000;
    }
    
    0 讨论(0)
提交回复
热议问题