protected void Page_Load(object sender, System.EventArgs e) { string setup = new AppEnv(Context).GetAppSetting("setup"); if (setup.Equals("true")) { Response.Redirect("Administration/admin.aspx"); } else { Response.Redirect("Setup/setup.aspx"); } }
private void Page_Load(object sender, System.EventArgs e) { string ready = new AppEnv(Context).GetAppSetting("ready"); if (ready.Equals("true")) { if (Request.IsAuthenticated) { Response.Redirect("CDA/Protected/myHomePg.aspx"); } else { Response.Redirect("CDA/HomePg.aspx"); } } }