I want to remove \"returnurl=/blabla\" from address bar when a user want to access to a login required page. Because I\'m trying to redirect the user to a static page after
void Application_BeginRequest(object s, EventArgs e) { // ................ // strip return Return Url if (!string.IsNullOrEmpty(Request.QueryString["ReturnUrl"]) && Request.Path.IndexOf("login.aspx")!=-1) System.Web.HttpContext.Current.Response.Redirect("~/login.aspx");