Evenement MaCombo_SelectedIndexChanged n'est pas executé
1 réponse
Gilles TOURREAU
Salut tout le monde !
Dans une WebForm, j'ai créer un combo que j'ai appellé MaCombo et je lui ai
attaché un evenement avec Visual Studio "MaCombo_SelectedIndexChanged". A
l'execution, quand je choisi un élement dans ma combo, le code n'est pas
executé (le débuggeur ne passe pas par la fonction
"MaCombo_SelectedIndexChanged"). Est-ce normal ? Est-ce que j'ai oublié un
truc ?
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
John Smith
i think you are know english, but i understand french. your code doesn't execute because you need to change autopostback property. when you change that true your codes will execute. don't forget if you don't use private sub form_load()
if not IsPostBack then 'do some thing 'this code not run autopostback event end if end sub above if block always execute indexchanged event. good working. ----------------------------------------------------------- Sabri Arslan Supernet - Nes General Yazgan Sk. No:17/2 Tünel Meydaný Beyoðlu 80070 Ýstanbul Tel :+90(212)244 31 31 Fax :+90(212)252 64 39 e-mail : Web :http://www.supernet.com.tr ----------------------------------------------------------- "Gilles TOURREAU" , iletide þunu yazdý news:
Salut tout le monde !
Dans une WebForm, j'ai créer un combo que j'ai appellé MaCombo et je lui
ai
attaché un evenement avec Visual Studio "MaCombo_SelectedIndexChanged". A l'execution, quand je choisi un élement dans ma combo, le code n'est pas executé (le débuggeur ne passe pas par la fonction "MaCombo_SelectedIndexChanged"). Est-ce normal ? Est-ce que j'ai oublié un truc ?
Merci par avance de vos réponses ! Cordialement
i think you are know english, but i understand french.
your code doesn't execute because you need to change autopostback property.
when you change that true your codes will execute. don't forget if you don't
use
private sub form_load()
if not IsPostBack then
'do some thing
'this code not run autopostback event
end if
end sub
above if block always execute indexchanged event.
good working.
-----------------------------------------------------------
Sabri Arslan
Supernet - Nes
General Yazgan Sk. No:17/2
Tünel Meydaný Beyoðlu
80070 Ýstanbul
Tel :+90(212)244 31 31
Fax :+90(212)252 64 39
e-mail : sabri@supernet.com.tr
Web :http://www.supernet.com.tr
-----------------------------------------------------------
"Gilles TOURREAU" <webmaster@microgil.com>, iletide þunu yazdý
news:e5QMk1ZcEHA.3096@tk2msftngp13.phx.gbl...
Salut tout le monde !
Dans une WebForm, j'ai créer un combo que j'ai appellé MaCombo et je lui
ai
attaché un evenement avec Visual Studio "MaCombo_SelectedIndexChanged". A
l'execution, quand je choisi un élement dans ma combo, le code n'est pas
executé (le débuggeur ne passe pas par la fonction
"MaCombo_SelectedIndexChanged"). Est-ce normal ? Est-ce que j'ai oublié un
truc ?
i think you are know english, but i understand french. your code doesn't execute because you need to change autopostback property. when you change that true your codes will execute. don't forget if you don't use private sub form_load()
if not IsPostBack then 'do some thing 'this code not run autopostback event end if end sub above if block always execute indexchanged event. good working. ----------------------------------------------------------- Sabri Arslan Supernet - Nes General Yazgan Sk. No:17/2 Tünel Meydaný Beyoðlu 80070 Ýstanbul Tel :+90(212)244 31 31 Fax :+90(212)252 64 39 e-mail : Web :http://www.supernet.com.tr ----------------------------------------------------------- "Gilles TOURREAU" , iletide þunu yazdý news:
Salut tout le monde !
Dans une WebForm, j'ai créer un combo que j'ai appellé MaCombo et je lui
ai
attaché un evenement avec Visual Studio "MaCombo_SelectedIndexChanged". A l'execution, quand je choisi un élement dans ma combo, le code n'est pas executé (le débuggeur ne passe pas par la fonction "MaCombo_SelectedIndexChanged"). Est-ce normal ? Est-ce que j'ai oublié un truc ?