示例#1
0
 protected void Quitar_Click(object sender, EventArgs e)
 {
     if (TextBox2.Text != "")
     {
         int  idUs   = proxy.obtenerIDUS(TextBox2.Text);
         bool quitar = proxy.QUITARSUSPENCION(idUs);
         if (quitar == true)
         {
             Response.Write("Se habilitó usuario");
         }
         else
         {
             Response.Write("<script language=javascript>");
             Response.Write("alert('No se pudo suspender')");
             Response.Write("</script>");
         }
     }
     else
     {
         Response.Write("<script language=javascript>");
         Response.Write("alert('ingrese un usuario')");
         Response.Write("</script>");
     }
 }