怎样取消Application_EndRequest中的输出?
protected void Application_EndRequest(Object sender, EventArgs e)
{
//每页都输出,但有个别的不希望输出,在WebForm.aspx.cs中怎样用代码取消?同样的在Application_BeginRequest中的又怎样取消?
Response.Write("EndRequest"); } 谢谢。
protected void Application_EndRequest(Object sender, EventArgs e)
{
//每页都输出,但有个别的不希望输出,在WebForm.aspx.cs中怎样用代码取消?同样的在Application_BeginRequest中的又怎样取消?
Response.Write("EndRequest"); } 谢谢。
解决方案 »
- js上传文件小问题
- 请教这个正则是如何理解的啊
- 错误处理还是异常处理好
- 我做的B/S软件放在中文WINDOWS服务器上能运行,那么如果放在英文Windows上能正常运行吗?客户端会出现乱字符吗??
- ASP.NET中的DATAGRID选择一行后如何获取该行的数据?
- 网页搜索的时候报错:未将对象引用设置到对象实例
- web.config 2.0 去 4.5
- MVC4的Controllers目录下自建目录A210后,路径xx/A210/a/b或者xx/a/b都可以跳转到同一个页面
- 请高手指导,下面的问题应该写啊
- 某控件的属性类型是直接或间接继承了Component的类,可是他的子属性不能保存状态,有例子:请进 多谢
- 请各位高手指教!!!急!!!
- @@@@@@@@@@@@@在创建WEB项目时出错!快帮小弟看看,十万火急!!!!!!!!@@@@@@@@@@@@@@@@@@@@
protected void Application_EndRequest(Object sender, EventArgs e)
{
string [] s=((HttpApplication)sender).Request.Url.ToString().Split('/');
if(s[s.Length-1].ToString().ToLower()!="webform.aspx")Response.Write("EndRequest");
}