asp.net mvc - how to call a helper method on a button click inside a view in mvc -
i m using third party custom helper opens report. have wrapped inside helper method in view below
@helper openreport(string reportname) { @html.mvcreportviewer("/foldername/"+reportname, new { height = 900, width = 900, style = "border: none" }) }
i need call helper method on button or anchor click. how can possibly that?
i m trying not seem work
<a href="#" onclick="@openreport("reportname");return false;" >my report</a>
any ideas? thanks
Comments
Post a Comment