I have a link to an SSRS report in my .cshtml
page:
<div class="col-md-8">
<a href="http://xxx.xx.xx.x/ReportServer/Pages/ReportViewer.aspx?%2fCompany_Reporting%2fpayr0001&rs:Command=Render&StartDate=01/09/2017" target="_blank" >Timesheet Status Report</a>
</div>
I need to pass the value from my date control as a parameter as opposed to the hard-coded date above:
<div class="form-group">
<input type="date" class="form-control" id="datefrom">
</div>
I have tried appending an onclick=myfunction()
to the url to add the date value, but can't get it to work.
function getStartDate() {
return document.getElementById("datefrom").value;
}
Any help would be much appreciated.
Cheers.