global.asax inherits httpapplication class. httpapplication not contain events of global.asax. rest of events present? must inherited somewhere. source ?
they're not inherited anywhere. they're hooked asp.net pipeline via a convention
during application life cycle, application raises events can handle , calls particular methods can override. handle application events or methods, can create file named global.asax in root directory of application.
...
asp.net automatically binds application events handlers in global.asax file using naming convention application_event
and, finally, model extensible:
if add modules application, modules can raise events. application can subscribe in these events in global.asax file using convention modulename_eventname.
which why can e.g. session related events in file also, such session_start.
Comments
Post a Comment