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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -