Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selectively firing events
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01147981
Message ID:
01148156
Vues:
22
>I don't think this can be done because AutoPostBack originates on the client. You'd have to disconnect the client handler. Something like:
>

I wasn't so much worried about shutting off the autoposting of the control as much as knowing >when< I need to do this. The real question I had was if there was even a way of knowing when another object is listening to the event I could raise. If there wasn't, I would just disable autoposting and not bind to the event.

It would seem like I wouldn't be able to do this, since this is happening through a delegate. The design of controls might also answer my question: if this was possible, they really wouldn't need a AutoPostBack property - the control could decide on it's own if this was required, just knowing if another object had hooked into the events (well, they still might to keep AutoEventWireup).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform