/ Published in: JavaScript
If you wish to set an ASyncPostBackTrigger in ScriptManager for AJAX.NET, using ASyncPostBackTrigger="xxx" causes Firefox, Chrome, Safari, etc. to timeout on partial page postback, using this javascript to set the ASyncPostBackTrigger (instead of the tag on the ScriptManager) will allow this to work.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> AjaxControlToolkit.ToolkitScriptManager ajax = (AjaxControlToolkit.ToolkitScriptManager)this.Page.Master.FindControl("ScriptManager1"); if(ajax != null) ajax.AsyncPostBackTimeout = 600; </script>