Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatic Control Events
Message
De
13/11/2009 10:02:42
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
AJAX
Titre:
Programmatic Control Events
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01434606
Message ID:
01434606
Vues:
97
I have an ASP.NET 2.0 form with a MS AJAX UpdatePanel on it. In the update panel there is an ASP.NET Calendar control. In the DayRender event of the Calendar I programmatically add an ImageButton, set its properties and add a Command event handler to it:
ib.Command += new CommandEventHandler(this.ImageButton_Command)
Clicking the image button will force a postback but the programmatically added Command event handler does not fire.

I have run tests by both manually and programmatically placing an image button on another part of the form and setting the Command event handler and the event handler properly fires. I am wondering if it has something to do with adding the image button to the Calendar control control hierarchy and its interaction with the AJAX Update Panel.

Has anyone seen this, knows what the issue is, and how to resolve it?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform