Example #1
0
 protected void Button18_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebServiceProyectoSoapClient referencia = new ServiceReference1.WebServiceProyectoSoapClient();
     if (DropDownList3.SelectedItem.Text.ToString().Contains("Jugador Base-"))
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "alert('Debe seleccionar un juego');", true);
     }
     else
     {
         string[] datos = DropDownList3.SelectedItem.ToString().Split('-');
         referencia.BorrardeListaJuegos(datos[0], datos[1], int.Parse(datos[2]), int.Parse(datos[3]), int.Parse(datos[4]));
         ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "alert('Juego borrado con exito');", true);
         this.Button14.Visible = this.Button16.Visible = this.Label6.Visible = this.ddljugadorbase.Visible = this.Button17.Visible = this.DropDownList3.Visible = this.Button18.Visible = false;
     }
 }