Response.End() doesn't end the user response

MadGear

New Member
I have Application_BeginRequest handler in global.asax file that should end the user request before page handling :\[code\]protected void Application_BeginRequest(object sender, EventArgs e){ if (true) { FormsAuthentication.SignOut(); string newBody = "unavailable"; HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.StatusCode = 503; HttpContext.Current.Response.Write(newBody); HttpContext.Current.Response.End(); return; }}\[/code\]but page life cycle is getting to the Page_Load event. What is the problem?
 
Back
Top