protected void Button25_Click(object sender, EventArgs e) { DropDownList4.Items.Clear(); DropDownList5.Items.Clear(); DropDownList6.Items.Clear(); TextBox6.Text = ""; Image2.Visible = false; Label18.Visible = DropDownList4.Visible = Label19.Visible = DropDownList5.Visible = Label20.Visible = DropDownList6.Visible = Label21.Visible = TextBox6.Visible = Button26.Visible = true; if (numnivel1 > 0 || numnivel2 > 0 || numnivel3 > 0 || numnivel4 > 0) { for (int i = 65; i < 65 + tamax; i++) { DropDownList4.Items.Add(((char)i).ToString()); } if (ubase) { for (int i = 1; i < tamay / 2; i++) { DropDownList5.Items.Add(i.ToString()); } } else { for (int i = tamay / 2; i < tamay; i++) { DropDownList5.Items.Add(i.ToString()); } } if (numnivel1 > 0) { DropDownList6.Items.Add("Submarino"); } if (numnivel2 > 0) { DropDownList6.Items.Add("Crucero"); DropDownList6.Items.Add("Fragata"); } if (numnivel3 > 0) { DropDownList6.Items.Add("Bombardero"); DropDownList6.Items.Add("Caza"); DropDownList6.Items.Add("Helicoptero de combate"); } if (numnivel4 > 0) { DropDownList6.Items.Add("Neosatelite"); } ServiceReference1.WebServiceProyectoSoapClient refer = new ServiceReference1.WebServiceProyectoSoapClient(); refer.InicializarMatrizInicial(); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alertIns", "aler('Ya no se pueden ingresar mas unidades');", true); } }