Example #1
0
 protected void Button12_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebServiceProyectoSoapClient referencia = new ServiceReference1.WebServiceProyectoSoapClient();
     if (txtelinick.Text.Length != 0)
     {
         if (referencia.EliminarUsuarios(txtelinick.Text))
         {
             this.Label5.Visible = this.txtelinick.Visible = this.Button12.Visible = false;
             txtelinick.Text     = "";
             ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "alert('Eliminacion exitosa');", true);
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "alert('No se pudo eliminar el usuario deseado');", true);
         }
     }
 }