Hi,
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.
Thanks!
Yvan
Hi,
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.
Thanks!
Yvan
In a controller you should be able to do this:
this.HttpContext.Application["foo"] = "bar";