protected void btnSubmit_Click(object sender, EventArgs e)
        {
            Customer         theCustomer  = (Customer)Session["CustomerRegistration"];
            CustomerInfoTier custInfoTier = new CustomerInfoTier();

            try
            {
                custInfoTier.insertCustomer(theCustomer);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            Session["CustomerRegistration"] = null;
            Response.Redirect("Default.aspx");
        }
Exemple #2
0
        protected void ShowCustomers()
        {
            DataSet          ds = new DataSet();
            CustomerInfoTier ct = new CustomerInfoTier();

            try
            {
                ds = ct.getCustomerDataSet();
            }
            catch (Exception ex)
            {
                throw new Exception("Error Getting DataSet " + ex.Message);
            }
            gvCustomer.DataSource = ds;
            gvCustomer.DataMember = "CustomerInfo";
            gvCustomer.DataBind();
        }