Exemplo n.º 1
0
        /// <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/"));
        }
Exemplo n.º 2
0
        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!";
            }
        }
Exemplo n.º 3
0
        /// <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();
        }
Exemplo n.º 4
0
 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);
 }