Exemplo n.º 1
0
        private void save_Click(object sender, EventArgs e)
        {
            CusProps p = new CusProps();

            p.C_id      = txt_eid.Text;
            p.C_name    = txt_name.Text;
            p.C_cell    = txt_cell.Text;
            p.C_address = txt_address.Text;
            p.C_cnic    = cnic.Text;

            CusBLL cus = new CusBLL();

            if (cus.insertCusBLL(p))
            {
                MessageBox.Show("Record Inserted Successfully");
                txt_eid.Text     = "";
                txt_name.Text    = "";
                txt_cell.Text    = "";
                txt_address.Text = "";
                cnic.Text        = "";
            }
            else
            {
                MessageBox.Show("Record Inserted Unsuccessfull");
            }
        }
Exemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            CusProps p = new CusProps();

            p.C_id      = txt_eid.Text;
            p.C_name    = txt_name.Text;
            p.C_cell    = txt_cell.Text;
            p.C_address = txt_address.Text;
            p.C_cnic    = cnic.Text;

            CusBLL cus = new CusBLL();

            if (cus.insertCusBLL(p))
            {
                massege("Record Inserted Successfully");
                txt_eid.Text     = "";
                txt_name.Text    = "";
                txt_cell.Text    = "";
                txt_address.Text = "";
                cnic.Text        = "";
            }
            else
            {
                massege("Record Inserted Unsuccessfull");
            }
        }