//
you're reading...
asp.net

OnLoad or Load Method Overriding

I was trying to figure out the rationale behind overriding the OnLoad method instead of the Load event. (Read some interesting post about the relative merits from a performance perspective.) However, after locating the ‘How to: Raise Base Class Events in Derived Classes” section of Microsoft’s Programming Guide I came upon the “real” reason. Namely, only the base class can actually raise the event; hence the need for the OnLoad derivative that permits a derived class from invoking the event indirectly.

Advertisement

About art colman

XML tools and consulting for standards development.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.