Rendering WebForm in ASP.Net MVC

1

I need to call a WebForm from an Action in controller , I read a lot on the internet but could not get it to work.

I followed the example in this link , where it asks to change the inheritance of WebForm System.Web.Mvc.ViewPage , if I do not change the error stating that the inheritance should be System.Web.Mvc.ViewPage , if I change the error below.

    
asked by anonymous 14.11.2014 / 16:23

1 answer

1

As I could not render through the controller, I discovered that it is possible to call the report hosted in Reporting Services with JavaScript.

javascript: void (window.open('http://srv-teste/ReportServer/Pages/ReportViewer.aspx?/Compras/Pedido&rs:Command=Render&param1=10&param2=20&rc:Parameters=Collapsed', '_blank'))

The rc: Parameters = Collapsed option causes the parameter prompt to be minimized.

    
18.11.2014 / 17:59