protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     try
     {
         int i;
         EmpleadoBL a = new EmpleadoBL();
         int index = Convert.ToInt32(e.RowIndex);
         i = a.Eliminar(Convert.ToInt32(GridView1.Rows[index].Cells[2].Text.ToString()));
         if (i > 0)
         {
             Listar();
         }
     }
     catch (Exception)
     {
     }
 }