Monday 10 February 2014

httpcontext.current namespace for asp.net mvc

simple change in this
instead of this line 

HttpContext context = HttpContext.Current;

change to
HttpContext context = System.Web.HttpContext.Current;

dont forgot to add using system.web;   namespace in the page in mvc Application.

No comments:

Post a Comment