예제 #1
0
 protected void btnsave_Click(object sender, EventArgs e)
 {
     try
     {
         if (btnsave.Text == "save")
         {
             InsertintoDb();
             int i = blobj.InsertEmployee(daobj);
             if (i > 0)
             {
                 Response.Write("inserted successfully");
             }
             //if (EmpName != null && UserName != null && Password != null && ConfirmPassword != null && Gender != null && PhoneNumber != null && Emailid != null && Designation != null)
         }
         if (btnsave.Text == "Update")
         {
             InsertintoDb();
             int i = blobj.Updateedit(daobj);
         }
     }
     catch (Exception ex)
     {
     }
 }