I have a value in an variable(MVC View). This value has to be passed to the stored procedure parameter.
The URL of Report hosted on Different box is:
http://differentbox/Reports/Pages/Report.aspx?ItemPath=%2fMyReports%2fReport1.
This reports needs a stored procedure, The value for the stored procedure should go from the MVC View.(The Value is available in a variable)
I want to Place a hyperlink on a MVC View, so that clicking on it will take the value from the MVC and stored procedure will run.
Any ideas please, I am looking for the approach of how to pass the value from VIEW to Stored Procedure.
Thank you
Just add an action link with the parameter in the querystring. Otherwise use a reporting services webservice like suggested here: Executing Reporting Services Web Service from ASP.NET MVC Using WCF
Answer updated
Just add an
<a href='blah'>tag with the link pointing to your Reporting Services server.To call a reporting services with a parameter use the SRSS R2 request as follow:
http://differentbox/Reportserver?/MyReports/Report1&rs:Command=Render¶mname=value