//------------------------------------------------------------------------------------------- protected void Page_Init(object sender, EventArgs e) { // Register1.HideRegisterButtonRow(); //if (LoggedInUser.Id != Guid.Empty) { //AccountInfo.Visible = false; //AccountInfoHeader.Visible = false; } Master.FixedWidth = true; Master.MaxWidth = "880px"; WeavverMaster.SetToolbarVisibility(false); RequiresSSL = true; ActivationRequired = false; PrimaryContact.Title.Text = "Primary Contact"; BillingContact.Title.Text = "Billing/Shipping Contact"; if (ShoppingCart.Items.Count == 0) { ShowError("We could not find any items in your shopping cart. Please re-add them."); Response.Redirect("~/", true); } Deposit.Text = ShoppingCart.DepositTotal.ToString("C"); Monthly.Text = ShoppingCart.MonthlyTotal.ToString("C"); CartTotal.Text = ShoppingCart.Total.ToString("C"); IsPublic = true; if (!IsPostBack) { UpdatePage(); } }
//------------------------------------------------------------------------------------------- protected void Page_Load(object sender, EventArgs e) { IsPublic = true; if (Request.UserHostAddress != "127.0.0.1" || ConfigurationManager.AppSettings["install_mode"] == "false") { Response.Write("This page is unavailable to the general internet. Please visit from the server machine."); Response.End(); } WeavverMaster.SetToolbarVisibility(false); WeavverMaster.FormTitle = "Weavver First-Time Set-Up"; WeavverMaster.FormDescription = "This wizard will help you configure Weavver for your first use."; //"Notice: To deploy the schema you need to change your web.config setting 'install_mode' from false to true to install Weavver."; //NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration cfg = (NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration)ConfigurationManager.GetSection("hibernate-configuration"); //string con1 = ConfigurationManager.ConnectionStrings["weavver"].ConnectionString; //string con2 = cfg.SessionFactory.Properties["connection.connection_string"]; //if (con1 != con2) //{ // ShowError("Your connection strings are out of sync. Please fix this in the web.config file."); //} string connectionString = ConfigurationManager.ConnectionStrings["WeavverEntityContainer"].ConnectionString; var entityBuilder = new System.Data.EntityClient.EntityConnectionStringBuilder(connectionString); var sqlBuilder = new System.Data.SqlClient.SqlConnectionStringBuilder(entityBuilder.ProviderConnectionString); DatabaseHost.Text = sqlBuilder.DataSource; DatabaseUsername.Text = sqlBuilder.UserID; DatabaseName.Text = sqlBuilder.InitialCatalog; }
protected void Page_Init(object sender, EventArgs e) { IsPublic = true; WeavverMaster.FixedWidth = false; WeavverMaster.Width = "100%"; //WeavverMaster.FormTitle = table.DisplayName; WeavverMaster.SetToolbarVisibility(true); }
//------------------------------------------------------------------------------------------- protected void Page_Init(object sender, EventArgs e) { IsPublic = true; ActivationRequired = false; WeavverMaster.FormTitle = "Register for your Weavver Account"; WeavverMaster.FixedWidth = false; WeavverMaster.Width = "100%"; WeavverMaster.MaxWidth = "800px"; WeavverMaster.SetToolbarVisibility(false); }
protected void Page_Load(object sender, EventArgs e) { WeavverMaster.SetToolbarVisibility(false); WeavverMaster.FormTitle = "Weavver Installed"; }