示例#1
0
 protected void btnEliminar_Click(object sender, EventArgs e)
 {
     miExp = miExp.Buscar(lblclasexp.Text);
     if (miExp != null)
     {
         int resp = miExp.Eliminar(lblclasexp.Text);
         if (resp == 1)
         {
             ClientScript.RegisterStartupScript(GetType(), "mostrar", "datoEliminado();", true);
         }
         else
         {
             ClientScript.RegisterStartupScript(GetType(), "mostrar", "ErEliminar();", true);
         }
     }
     else
     {
         ClientScript.RegisterStartupScript(GetType(), "mostrar", "noEncontrado();", true);
     }
 }