Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            EmpProps p = new EmpProps();

            p.E_id = txt_eid.Text;

            EmpBLL emp = new EmpBLL();

            if (emp.deleteEmpBLL(p))
            {
                MessageBox.Show("Record Deleted Successfully");
                txt_eid.Text     = "";
                txt_name.Text    = "";
                txt_cell.Text    = "";
                txt_address.Text = "";
            }
            else
            {
                MessageBox.Show("Record Deleted Unsuccessfull");
            }
        }
Esempio n. 2
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            EmpProps p = new EmpProps();

            p.E_id = txt_eid.Text;

            EmpBLL emp = new EmpBLL();

            if (emp.deleteEmpBLL(p))
            {
                Response.Write("<script>alert('Record Deleted 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 Deleted Unsuccessfull')</script>");
            }
        }