I recently had an EP page that listed ProjTimeSheet records for approval or rejection. When the user selected >20 rows to update a timeout occured.
After short time on google i found this solution http://community.dynamics.com/product/ax/f/33/p/32933/56908.aspx and down att the bottom is the following code snippet to set the AsyncPostBackTimeout for AJAX which was causing the timeout.
I applied this code to the Page_Load method of the control in question and then i could update all the rows without getting the timeout error message.
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager scripts = ScriptManager.GetCurrent(this.Page);
if (scripts != null)
{
scripts.AsyncPostBackTimeout = 600; // 600 seconds
}
}
After short time on google i found this solution http://community.dynamics.com/product/ax/f/33/p/32933/56908.aspx and down att the bottom is the following code snippet to set the AsyncPostBackTimeout for AJAX which was causing the timeout.
I applied this code to the Page_Load method of the control in question and then i could update all the rows without getting the timeout error message.
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager scripts = ScriptManager.GetCurrent(this.Page);
if (scripts != null)
{
scripts.AsyncPostBackTimeout = 600; // 600 seconds
}
}
Comments
Post a Comment