Salut
je veux juste modifier un Textbox en changeant un DropDownList mais ça ne marche pas pour moi .
Merci de m'aider.Code:
1
2
3
4 protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e) { TextBox1.Text = "rr"; }
Version imprimable
Salut
je veux juste modifier un Textbox en changeant un DropDownList mais ça ne marche pas pour moi .
Merci de m'aider.Code:
1
2
3
4 protected void DropDownList1_SelectedIndexChanged1(object sender, EventArgs e) { TextBox1.Text = "rr"; }
Bonjour,
Tu as mis un BreakPoint pour voir si l'évènement était bien déclenché ?
Tu as ta DropDownList dans un UpdatePanel et ta TextBox en dehors de celui- ci ?
En espérant t'avoir aidé.
oui , mais l'exécution ne s'arrête pas :(
Ok, et ta DropDownList a sa propriété AutoPostBack à true ?
Sinon poste ici le code déclaratif de ta DropDownList, ta textbox (et UpdatePanel + Javascript sur besoin).
Ça Marchait ! j'ai ajouté AutoPostBack="True"
Merci infiniment .