protected void Suspender_Click(object sender, EventArgs e) { if (TextBox1.Text != " ") { int idUs = proxy.obtenerIDUS(TextBox1.Text); bool suspencion = proxy.SUSPENDER(idUs); if (suspencion == true) { Response.Write("Se suspendió 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>"); } }