Пример #1
0
 protected void btYes_Click(object sender, EventArgs e)
 {
     CustomerRepository cRepos = new CustomerRepository();
     lbAnswer.Text = cRepos.AddCustomer(AppData.Instance.customer);
     btYes.Visible = false;
     btNo.Visible = false;
     btAltNo.Visible = true;
     btAlt.Visible = true;
     btMedicare.Visible = true;
 }
Пример #2
0
        protected void btSearch_Click(object sender, EventArgs e)
        {
            string SearchVal = tbSearchValue.Text;
            string SpName = Convert.ToString(ddStuff.SelectedValue);

            CustomerRepository CustRepos = new CustomerRepository();

            customer.DataSource = CustRepos.SearchCustomer(SpName, SearchVal);
            lbData.Text = SpName;
            lbData.Text = AppData.Instance.customer.StoredProcResult;
            customer.DataBind();

            //customer.Columns[4].Visible = false;
        }