if i create my enum class in the global.ascx in MVC, is there a way i can call that class from a controller.
ie
i do this in my global.ascx class
volume myVolume = volume.Low
is there a way i can find out what i set myVolume to from a controller.
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.
Scope of variables check that it is accessable, then use
Note: its a standard class so the property will need to be defined as static or you could wrap in a singleton, your call, so that all controllers can reach it. Session might be a better place to store the value.