RKP*_*RKP 7 asp.net timeout master-pages asp.net-ajax scriptmanager
我在我的ASP.NET网站上使用母版页,在我上传文件的一个内容页面中,需要比默认值90秒更长的超时值.对于其他内容页面,我想保留默认的超时值.
是否可以为特定内容页面设置超时?我检查了ScriptManagerProxy组件,但它没有AsyncPostBackTimeout属性.
ble*_*ech 17
您应该能够在Page_Load事件中的代码隐藏中设置它:
protected void Page_Load(object sender, EventArgs e) {
ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 300;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19340 次 |
| 最近记录: |