How to transfer the following class to ASP.NET MVC3? This is part of MVC: Module controller actions that use the ASP.NET MVC2-based TempData article. The RenderView () method no longer exists and has different parameters.
Thank.
private sealed class TestHomeController : HomeController {
public RouteValueDictionary RedirectValues;
public string RenderViewName;
public string RenderMasterName;
public object RenderViewData;
protected override void RedirectToAction(RouteValueDictionary values) {
RedirectValues = values;
}
protected override void RenderView(string viewName, string masterName,
object viewData) {
RenderViewName = viewName;
RenderMasterName = masterName;
RenderViewData = viewData;
}
}
source
share