Reputation: 125
I implemented a variable in global.asax and I would like to use it within other controllers. Thank you in advance.
Upvotes: 0
Views: 1006
Reputation: 2983
If your varialbe is static you can use this sintax - MvcApplication.VarName. Where MVCApplication your main class inherited from System.Web.HttpApplication, and VarName - your variable name.
Upvotes: 1