|
I've an Aspx page on which i'm showing an SSRS Report using Report Viewer, now i've a function in that Aspx page that i need to call. Report consist of a table and i need to be able to invoke this function by clicking the elements in the first column of the table. Is there a way to do this by using javascript in the navigation property of that column?? How to do this, Pls suggest??
(comments are locked)
|
|
There are two possibilities that I can think of: javascript injection (which might work) or URLs (which should work). There is a little bit out there on Javascript injection into SSRS, and it's definitely an advanced topic. You might be able to inject script to call Javascript methods which could perform the functionality you need, but do be aware that if you use the Microsoft Ajax toolkit, there are some compatibility issues with Report Viewer, so this might not even work the way you want. The other option I could think of is using URLs with querystring parameters and feeding them into your report. The downside to this is that you would get a full page refresh any time somebody clicked on the report link. You might be able to put in your own Javascript on the page here as well, creating a hybrid of the two options. Honestly, if you need an interactive grid, you'd probably be better off dropping in a GridView (or nested Repeaters if it's a matrix) and setting it up similar to your report. That way, you can keep within the web forms postback model and implement the functionality you need. The Report Viewer control was meant to be a window, not something which affects the rest of your page.
(comments are locked)
|

