How do I store a variable or object application wide in ASP.net MVC?
In regular ASP, you had the Application object and in ASP.net too apparently.
I'm using ASP.net MVC 2.
In a controller you should be able to do this:
this.HttpContext.Application["foo"] = "bar";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With