Salve a tutti.
Forse è una domanda stupida, ma non riesco a capire perchè non mi funziona questo codice:
O meglio, col pulsante funziona, con la selezione della dropdownlist no.codice:namespace WebApplication3 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { if (Label1.Text != "OK") Label1.Text = "OK"; else Label1.Text = "Ripremere"; DropDownList1.Visible = true; } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Button1.Visible = false; TextBox1.Visible = true; } } }
Grazie

Rispondi quotando