ReportViewer with ASP.net MVC 3

asp.net-mvc-3reporting-servicesreportviewer

I have developed SSRS report and deployed on server. The report has dropdown, based on dropdown selection report data varies since this dropdown value is passed as Parameter to report. The report works just fine when accessed directly.

Now I have integrated this report into my ASP.net MVC 3 application using ReportViewer.
When report is accessed thru web application page appears to be loading correctly but when I click on View Report it shows message "Loading" for a while and then displays nothing.
I'm clueless on this and not understanding this behavior at all.


UPDATE

I found solution at https://stackoverflow.com/a/2547454/287100

Best Answer

This is a particular question where you need to combine ASP.NET web-forms with MVC, which is perfectly fine. Because, ReportViewer control won't work if you place it in an MVC view, as it requires ViewState.

How to make SSRS work? well follow this article - Incorporating ASP.NET MVC and SQL Server Reporting Services

Another post that shows benefits of combining web-forms with mvc - Viewing SSRS Reports in an ASP.net MVC Site

Related Topic