此上下文中不允许异步操作。启动异步操作的页必须将 Async 属性设置为 true,并且异步操作只能在 PreRenderComplete 事件之前的页上启动。
2013-11-19 10:49
471 查看
错误如下:
此上下文中不允许异步操作。启动异步操作的页必须将 Async 属性设置为 true,并且异步操作只能在 PreRenderComplete 事件之前的页上启动。
解决:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AsyncPage.aspx.cs" Inherits="_Default" Async="true" %>
此上下文中不允许异步操作。启动异步操作的页必须将 Async 属性设置为 true,并且异步操作只能在 PreRenderComplete 事件之前的页上启动。
解决:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AsyncPage.aspx.cs" Inherits="_Default" Async="true" %>
相关文章推荐
- [Android拾遗]如何把ndk-build的所有信息输出到文件
- Java优先队列(PriorityQueue)示例
- js中return ,return false,return true的区别
- POJ 3384 Feng Shui 凸包直径 + 半平面交
- MVC报错:从客户端(FormData="...teImg\":\"<span class='icon-ok...") 中检测到有潜在危险的 Request.Form 值 解决办法
- mysql中key 、primary key 、unique key 与index区别
- The Definitive Guide To Django 2 学习笔记(八) 第四章 模板 (四)基本的模板标签和过滤器
- Java GUI 开发
- STL中deque
- IOS UI:弹出视图/弹出模态 presentViewController与presentModalViewController(增加IOS 6.0说明)
- Description Resource Path Location Type The project was not built due to "Could not delete '/Test/bi
- UIImagePickerController的基本知识
- [Android源码分析]bluez internal event的处理
- Query中click(),bind(),live(),delegate()的区别
- SAP GUI 快捷快速登入 密码灰色解决方式
- MySQL Working with NULL Values
- TI DM3730 BB-xM, Overo and IGEP hardware / software usage and root fs build resources
- < NGU插件 >NGUI类库说明
- Query中click(),bind(),live(),delegate()的区别
- 小红伞Rescue System-USB