开发者

reusing an asp.net custom server control in MVC3

I have an asp.net custom server control. Is there anyway I can reuse it in MVC3? My existing asp.net control relies quite a bit on storing the information in HttpContext. If I can somehow make the control go through the asp.net page lifecycle in MVC3, then maybe I can work with some of this information with minimal rewrite in MV开发者_C百科C3.

Is there a way I can make the asp.net Httpcontext coexist with the MVC3 HttpContext?

Thanks


ASP.Net MVC uses the same HttpContext class, through the thin HttpContextWrapper class.

However, most ASP.Net server controls will not work in MVC.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜