Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
ASP.NET and .NET WEB Questions and Answers
(Continued from previous question...)
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.
(Continued on next question...)
Other Interview Questions
|