public void Application_PreRequestHandlerExecute(object sender, EventArgs e) { try { string IsInstalled = Config.GetSetting("IsInstalled").ToString(); string InstallationDate = Config.GetSetting("InstallationDate").ToString(); if ((IsInstalled != "" && IsInstalled != "false") && InstallationDate != "") { if ((Context.Session != null)) { SessionTracker tracker = (SessionTracker)Session["Tracker"]; if ((tracker != null)) { tracker.AddPage(Request.Url.ToString()); } } } //else //{ // string path = HttpContext.Current.Server.MapPath("~/"); // HttpContext.Current.Response.Redirect("./Install/InstallWizard.aspx"); //} } catch { } }
/// <summary> /// Application's prerequest handler execute /// </summary> /// <param name="sender">Object sender</param> /// <param name="e">event arguments.</param> public void Application_PreRequestHandlerExecute(object sender, EventArgs e) { try { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if ((Context.Session != null)) { SessionTracker tracker = (SessionTracker)Session[SessionKeys.Tracker]; if ((tracker != null)) { tracker.AddPage(Request.Url.ToString()); } } } } catch { } }