views:

273

answers:

1

Hi, I've been digging thru the Page, TemplateControl and Control classes in reflector trying to figure out where AutoEventWireUp property is actually getting used. I've failed miserably.

My understanding of AutoEventWireUp is sketchy but I think it casues event handler methods to be automatically wired up to events? So I thought I'd see some code where this is happening, but this isn't the case.

Where is AutoEventWireUp actually used under the hood? Can I see the code in reflector?

Thanks in advance!

+2  A: 

I was going to write up an explanation but K. Scott Allen has a much better one.

My advice is to avoid AutoEventWireup and either override base "OnEvent" methods or explicitly wire up your own events as this will be faster, less magical, and easier to debug.

Andrew Hare
Thanks for that, for some reason my googling didn't find that one.
bplus