摘要: 在Web Application中,有个问题就是:“我怎么来判断一个http请求到底是通过按F5刷新的请求还是正常的提交请求?” 相信了解ASP.NET的人知道我在说什么,会有同感,而且这其实不是一个很easy的问题。那是因为HTTP协议无状态的特性不允许请求之间保持状态。 在Web Applica 阅读全文
posted @ 2018-09-17 10:51 你也很优秀 阅读(836) 评论(0) 推荐(0) 编辑
摘要: void Application_Error(object sender, EventArgs e) { if(Context != null) { HttpContext ctx = HttpContext.Current; Exception ex = ctx.Server.GetLastError(); HttpException ev = ... 阅读全文
posted @ 2018-09-17 10:48 你也很优秀 阅读(500) 评论(0) 推荐(0) 编辑