protected void Page_Load(object sender, EventArgs e) { Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (State == null || State.Count <= 2) { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "timeOut('../Default.aspx');", true); return; } if (!IsPostBack) { if (GoToPages.Items.Count == 0) { Init init = new Init(); init.InitAppPagesAndCustom(State, GoToPages, false); init.InitAppPagesAndCustom(State, page_if_true, true); init.InitAppPagesAndCustom(State, page_if_false, true); } InitActions(); } }
protected void Page_Load(object sender, EventArgs e) { Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; Util util = new Util(); if (State == null || State.Count <= 2) { Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), "timeOut('../Default.aspx');", true); return; } AccountType.Value = State["AccountType"].ToString(); if (!IsPostBack) { //Bold.Attributes.Add("onclick", "onBoldClick();"); //Italic.Attributes.Add("onclick", "onItalicClick();"); if (GoToPages.Items.Count == 0) { Init init = new Init(); init.InitAppPagesAndCustom(State, GoToPages, false); init.InitAppPagesAndCustom(State, page_if_true, true); init.InitAppPagesAndCustom(State, page_if_false, true); } InitActions(); } }