I am developing an MVC3 application using Visual Studio 2010.
I have an aspx page that I want to display as a result of a controller action.
I added this action
Easy way to use aspx page on mvc controller for rdlc view
public ActionResult RdlcReport( )
{
IHttpHandler page = (IHttpHandler)System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath("~/Report/ReportDataViewer.aspx", typeof(Page));
HttpApplication controllerContextHttpContextGetService = (HttpApplication)ControllerContext.HttpContext.GetService(typeof(HttpApplication));
page.ProcessRequest(controllerContextHttpContextGetService.Context);
return new EmptyResult();
}