您的位置:首页 > 移动开发

在Application_EndRequest中加入调试信息导致WebHtmlEditor出错

2005-06-06 14:44 363 查看
前天下了个WebHtmlEditor (http://www.cnblogs.com/lion.net/)回来
发现在我的项目中死都用不起,在demo和新建一个项目中用却正常。
折腾了1天,后来发现是我的项目中在Application_EndRequest加入了调试信息,每个request后面都加上了登者的信息,导致WebHtmlEditor脚本出错。

HttpApplication application = (HttpApplication)sender;
HttpContext context = application.Context;
string userInfo = "No User";
try
{
if(context.Request.IsAuthenticated)
{
userInfo ="<br>登录用户:"+ context.User.Identity.Name;
}

}
catch
{}

//context.Response.Write(userInfo);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐