Exemplo n.º 1
0
 protected void BTN_ActualizarEps_Click(object sender, EventArgs e)
 {
     try
     {
         Button  btn    = (Button)sender;
         TextBox tb     = (TextBox)btn.Parent.FindControl("TB_Eps");
         String  nombre = tb.Text.Trim();
         LEps    lEps   = new LEps();
         lEps.actualizarEps(int.Parse(btn.CommandName), tb.Text, Session.SessionID);
         LB_MensajeEps.Text = "Actualizo correctamente!";
         GV_Eps.DataBind();
     }
     catch (Exception ex)
     {
         LB_MensajeEps.Text = "El nombre que va a actualizar esta vacio!";
     }
     T_Eps.Enabled = true;
 }