I am developping a web application by using the ASP .NET MVC 3 framework.
I want to display a Crystal Reports 2011 report in a viewer in one of my view : VIEW-1.
So I have created an ASPX WebForm containing a CrystalReportViewer control.
I want to load VIEW-1 from another view by JavaScript programming.
More precisely I want to display VIEW-1 in a pop-up window.
I will be able to pass a SQL query in the URL.
The HTTP request to load VIEW-1 will be caught by one of my action method.
I will programmatically instantiate and configure a ReportDocument object in the action method.
Then I want to share the ReportDocument object with VIEW-1 before executing it and generating the HTTP response.
The ReportDocument object will be bound to the CrystalReportViewer during the execution of VIEW-1.
I usually share data between a controller and a Razor view by using the ViewData property.
But I have no idea about sharing data between a controller and an ASPX WebForm.
Any help will be really appreciated.