Does asp.net MVC have Application variables?

Yes, you can access Application variables from .NET MVC. Here’s how:

System.Web.HttpContext.Current.Application.Lock();
System.Web.HttpContext.Current.Application["Name"] = "Value";
System.Web.HttpContext.Current.Application.UnLock();

Leave a Comment