示例#1
0
        protected void btn1_Click(object sender, EventArgs e)

        {
            CustomerRegisterDataSource.Insert();
            CustomerRegisterDataSource.DataBind();
            btn1.Visible = false;
            btn3.Visible = true;
        }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     CustomerRegisterDataSource.DataBind();
     Session["Email"] = System.Web.HttpContext.Current.User.Identity.Name;
     UserEmail.Text   = Session["Email"].ToString();
     if (UserGridView.Rows.Count == 1)
     {
         btn1.Visible = false;
     }
     else
     {
         btn1.Visible = true;
         btn3.Visible = false;
     }
 }
示例#3
0
 protected void btn3_Click(object sender, EventArgs e)
 {
     CustomerRegisterDataSource.Update();
     CustomerRegisterDataSource.DataBind();
 }