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.
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