protected void btn1_Click(object sender, EventArgs e) { CustomerRegisterDataSource.Insert(); CustomerRegisterDataSource.DataBind(); btn1.Visible = false; btn3.Visible = true; }
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; } }
protected void btn3_Click(object sender, EventArgs e) { CustomerRegisterDataSource.Update(); CustomerRegisterDataSource.DataBind(); }