Geeks With Blogs
Zackary Geers blog

This is just an extension of my earlier post.  You can easily render an Action on a standard ASP.Net page with the following code.  The SimpleViewDataContainer is the same one from my previous post.



HtmlHelper helper = new HtmlHelper(new ViewContext(), new SimpleViewDataContainer());

helper.ViewContext.HttpContext =new HttpContextWrapper(HttpContext.Current);



Posted on Thursday, January 14, 2010 1:55 PM | Back to top

Comments on this post: Rendering MVC Actions on Asp.Net pages

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Zackary Geers | Powered by: