protected void Page_Load(object sender, EventArgs e) { Util util = new Util(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (util.CheckSessionTimeout(State,Response,"Default.aspx")) return; try { if (!IsPostBack) { CopyRight.InnerText = HttpRuntime.Cache["CopyRight"].ToString(); UserLabel.Text = State["Username"].ToString(); } if ( HttpRuntime.Cache["TechSupportEmail"] != null) { util.AddEmailToButton(SupportButton, HttpRuntime.Cache["TechSupportEmail"].ToString(), "Email To Tech Support"); } util.UpdateSessionLog(State, "post", "TabPublishOld"); /*PurchaseButton.Attributes.Add("onclick", PopupHelper.GeneratePopupScript( "http://stores.homestead.com/MobiFlexStore/StoreFront.bok", 700, 900, false, false, false, true)); ManageBillingButton.Attributes.Add("onclick", PopupHelper.GeneratePopupScript( "http://stores.homestead.com/MobiFlexStore/StoreFront.bok", 700, 900, false, false, false, true));*/ ShowProductionServices(); ClearMessages(); Init init = new Init(); if (State["ResetProvisionApps"] != null) { State["SelectedApp"] = null; init.InitAppsList(State, ProvisionApps); State["ResetProvisionApps"] = null; } if (ProvisionApps.Items.Count == 0) { init.InitAppsList(State, ProvisionApps); } SetProvisionButtons(ProvisionApps.SelectedValue); SetProvisionFormPopup(); } catch (Exception ex) { util.ProcessMainExceptions(State, Response, ex); } }
protected void FromAccounts_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) { Util util = new Util(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (util.CheckSessionTimeout(State, Response, "../Default.aspx")) return; if (e.Text.IndexOf("->") > 0) { Applications.Visible = false; CopyApplicationButton.Visible = false; return; } Applications.Visible = true; DB db = new DB(); string sql = "SELECT customer_id FROM customers WHERE username='******'"; string customer_id = db.ViziAppsExecuteScalar(State, sql); State["CopyApplicationFromCustomerID"] = customer_id; Init init = new Init(); init.InitAppsList(State, Applications, customer_id); db.CloseViziAppsDatabase(State); }
protected void Page_Load(object sender, EventArgs e) { Util util = new Util(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (util.CheckSessionTimeout(State, Response, "Default.aspx")) return; Init init = new Init(); try { if (util.CheckSessionTimeout(State,Response,"Default.aspx")) return; if ( HttpRuntime.Cache["TechSupportEmail"] != null) { util.AddEmailToButton(SupportButton, HttpRuntime.Cache["TechSupportEmail"].ToString(), "Email To Tech Support"); } util.UpdateSessionLog(State, "post", "TabDesignWeb"); ClearMessages(); if (!IsPostBack) { CopyRight.InnerText = HttpRuntime.Cache["CopyRight"].ToString(); UserLabel.Text = State["Username"].ToString(); if (CurrentApp.Items.Count == 0 || CurrentApp.SelectedValue.Contains("->") || State["SelectedApp"] == null) { init.InitAppsList(State, CurrentApp); } State["SelectedAppType"] = Constants.WEB_APP_TYPE; AppType.Text = Constants.WEB_APP_TYPE; State["UrlAccountIdentifier"] = util.GetUrlAccountIdentifier(State); UrlAccountIdentifier.Text = State["UrlAccountIdentifier"].ToString(); if (State["SelectedApp"] == null || !util.DoesAppExist(State) || CurrentApp.SelectedIndex == 0) { InitCurrentApp("->"); State["SelectedDeviceType"] = Constants.IPHONE; DeviceType.Text = State["SelectedDeviceType"].ToString(); } else if (State["SelectedApp"] != null) { InitCurrentApp(State["SelectedApp"].ToString()); } } DeletePage.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this page?');"); if (State["ResetConfigApps"] != null) { State["SelectedApp"] = null; init.InitAppsList(State, CurrentApp); State["ResetConfigApps"] = null; } State["WebServiceValidated"] = null; if (State["SelectedDeviceType"] == null) { State["SelectedDeviceType"] = Constants.IPHONE; DeviceType.Text = State["SelectedDeviceType"].ToString(); } SetAllAppNames(); } catch (Exception ex) { util.ProcessMainExceptions(State, Response, ex); } }
protected void UpdateAppLists() { try { Init init = new Init(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; init.InitAppsList(State, CurrentApp); RadComboBox ProvisionApps = (RadComboBox) State["ProvisionApps"]; init.InitAppsList(State, ProvisionApps); init.InitManageDataAppsList(State); SetAllAppNames(); } catch (Exception ex) { Util util = new Util(); Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; util.LogError(State, ex); Message.Text = "Internal Error: " + ex.Message + ": " + ex.StackTrace; } }
protected void Page_Load(object sender, EventArgs e) { Init init = new Init(); Util util = new Util(); try { Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; if (util.CheckSessionTimeout(State,Response,"Default.aspx")) return; if ( HttpRuntime.Cache["TechSupportEmail"] != null) { util.AddEmailToButton(SupportButton, HttpRuntime.Cache["TechSupportEmail"].ToString(), "Email To Tech Support"); } util.UpdateSessionLog(State, "post", "TabDesign"); ClearMessages(); if (!IsPostBack) { CopyRight.InnerText = HttpRuntime.Cache["CopyRight"].ToString(); string attr = "javascript: NamedPopUp('ManageData.aspx', 'ManageDataPopup','height=800, width=1000, left=50, top=50, menubar=no, status=no, location=no, toolbar=no, scrollbars=yes, resizable=yes');return false;"; ManageData.Attributes.Add("onclick", attr); UserLabel.Text = State["Username"].ToString(); if (CurrentApp.Items.Count == 0 || CurrentApp.SelectedValue.Contains("->") || State["SelectedApp"] == null) { init.InitAppsList(State, CurrentApp); } State["SelectedAppType"] = Constants.NATIVE_APP_TYPE; if (State["SelectedApp"] == null || !util.DoesAppExist(State) || CurrentApp.SelectedIndex == 0) { InitCurrentApp("->"); State["SelectedDeviceType"] = Constants.IPHONE; DeviceType.Text = State["SelectedDeviceType"].ToString(); } else if (State["SelectedApp"] != null) { InitCurrentApp(State["SelectedApp"].ToString()); } } DeletePage.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this page?');"); if (State["ResetConfigApps"] != null) { State["SelectedApp"] = null; init.InitAppsList(State, CurrentApp); State["ResetConfigApps"] = null; } State["WebServiceValidated"] = null; if (State["SelectedDeviceType"] == null) { State["SelectedDeviceType"] = Constants.IPHONE; DeviceType.Text = State["SelectedDeviceType"].ToString(); } SetAllAppNames(); } catch (Exception ex) { Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID]; util.ProcessMainExceptions(State, Response, ex); } }