I have created HTTP handlers.
How do I create global variables for these handlers like I can with ASP.net web pages in global.asax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add the variables to the Application instance:
Or, if the variable only need to live for the life of an individual request, use the Context object’s Items collection:
Again, that will live for only the life of a single request.