protected void btnsave_Click(object sender, EventArgs e)
 {
     objcustomer = new clsCustomer();
     try
     {
         objcustomer.CustCode  = Convert.ToInt32(txtcustcode.Text);
         objcustomer.CustName  = txtcustname.Text;
         objcustomer.UserName  = txtuname.Text;
         objcustomer.Address   = txtaddress.Text;
         objcustomer.Telephone = txttphone.Text;
         objcustomer.Mobile    = txtmobile.Text;
         objcustomer.Email     = txtemail.Text;
         // objcustomer.InsertData(objcustomer);
         if (Request.QueryString["action"] == "add")
         {
             objcustomer.InsertData(objcustomer);
         }
         else if (Request.QueryString["action"] == "edit")
         {
             objcustomer.UpdateData(objcustomer, txtcustcode.Text);
         }
     }
     catch (Exception ex)
     {
     }
 }