开发者

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

From within my controllers action, do I have access to ht开发者_如何学编程tpcontextbase?

I have a method that takes httpcontextbase as a parameter.


You have access to HttpContext which derives from HttpContextBase

so you can cast it like the following:

(HttpContextBase) HttpContext

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜