views:

56

answers:

1

From within my controllers action, do I have access to httpcontextbase?

I have a method that takes httpcontextbase as a parameter.

+3  A: 

You have access to HttpContext which derives from HttpContextBase

so you can cast it like the following:

(HttpContextBase) HttpContext

Mahesh Velaga