Пример #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            EmpProps p = new EmpProps();

            p.E_id       = txt_eid.Text;
            p.E_name     = txt_name.Text;
            p.E_cell     = txt_cell.Text;
            p.E_address  = txt_address.Text;
            p.E_email    = txt_email.Text;
            p.E_password = txt_password.Text;

            EmpBLL emp = new EmpBLL();

            if (emp.updateEmpBLL(p))
            {
                Response.Write("<script>alert('Record Updated Successfully')</script>");
                txt_eid.Text      = "";
                txt_name.Text     = "";
                txt_cell.Text     = "";
                txt_address.Text  = "";
                txt_email.Text    = "";
                txt_password.Text = "";
            }
            else
            {
                Response.Write("<script>alert('Record Updated Unsuccessfull')</script>");
            }
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            EmpProps p = new EmpProps();

            p.E_id      = txt_eid.Text;
            p.E_name    = txt_name.Text;
            p.E_cell    = txt_cell.Text;
            p.E_address = txt_address.Text;

            EmpBLL emp = new EmpBLL();

            if (emp.updateEmpBLL(p))
            {
                MessageBox.Show("Record Updated Successfully");
                txt_eid.Text     = "";
                txt_name.Text    = "";
                txt_cell.Text    = "";
                txt_address.Text = "";
            }
            else
            {
                MessageBox.Show("Record Updated Unsuccessfull");
            }
        }