Browse by Tags

Related Posts

  • Re: MVC Controller and URL logic?

    Holy crapoly! I thought MVC would make my life easier! :D Simpler answer: I overload my controller's constructor to accept a URL and use the HttpContext's HttpRequest URL in the default constructor? Better simpler answer: I create a custom "MyController" base class with the overloaded...
    Posted to ASP.NET MVC (Forum) by ericis_com on 12-30-2008, 12:00 AM
    Filed under: MVC, Controller, httpcontext, mock
  • How to add item to cache in controller's constructor?

    If I use HttpContext.Cache.Add I get the error: " System.NullReferenceException: Object reference not set to an instance of an object." from the line in Default.aspx httpHandler.ProcessRequest(HttpContext.Current); Is there another way?
    Posted to ASP.NET MVC (Forum) by webster.net on 08-16-2009, 12:00 AM
    Filed under: MVC, Cache, httpcontext, Controller
Page 1 of 1 (2 items)