You need to initialize some variable only when the first user accesses the application. What should you do?

Options
- Add code to the Application_OnStart event handler in the Global.asax file.
- Add code to the Application_BeginRequest event handler in the Global.asax
- Add code to the Session_OnStart event handler in the Global.asax file
- None


CORRECT ANSWER : Add code to the Application_OnStart event handler in the Global.asax file.

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement