Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selectively firing events
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01147981
Message ID:
01148156
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform