/// <summary> /// Used to populate the fields from the checkout page, /// if the confirmation page was posted to the confimation page. /// </summary> private void BuildPage() { Master.UserFeedBack.Text = "Please confirm your billing information."; lblName.Text = PreviousPage.FullName; lblAddress.Text = PreviousPage.ShippingAddress; lblCCType.Text = PreviousPage.CreditCardType; lblCCNumber.Text = PreviousPage.CreditCardNumber; myBusinessLayer = new clsBusinessLayer(Server.MapPath("~/App_Data/")); }
protected void btnLogin_OnClick(object sender, EventArgs e) { clsBusinessLayer myBusinessLayer = new clsBusinessLayer(Server.MapPath("~/App_Data/")); bool isValidUser = myBusinessLayer.CheckUserCredentials(Session, txtUserID.Text, txtPassword.Text, txtVerifyPassword.Text); if (isValidUser) { Response.Redirect("~/pgCheckOut.aspx"); } else if (Convert.ToBoolean(Session["LockedSession"])) { Master.UserFeedBack.Text = "Account is disabled. Contact System Administrator"; btnLogin.Visible = false; } else { Master.UserFeedBack.Text = "The User Id and/or Password supplied is incorrect. Please try again!"; } }
/// <summary> /// NMeggos /// Builds this child page executing default assignments, or other internal methods. /// </summary> private void BuildPage() { Master.UserFeedBack.Text = "Please enter billing information."; myBusinessLayer = new clsBusinessLayer(Server.MapPath(@"~/App_Data/")); BindCustomerGridView(); BindXMLGridView(); }
protected void btnSendEmail_OnClick(object sender, EventArgs e) { myBusinessLayer = new clsBusinessLayer(Server.MapPath("~/App_Data/")); Master.UserFeedBack.Text = myBusinessLayer.SendEmail(txtFrom.Text,txtTo.Text,txtSubject.Text,txtMessage.Text, txtPassword.Text); }