Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

button item template in gridview shows report in new window

$
0
0
<div>

Hi all.

I have an Asp.Net GridView in my web form (Default.aspx) that has an Item Template for a column that a Button is in it.

When I click on the button I show a new window (window.open) that contain a report.

Also I send a parameter for link: window.open(WebForm1.aspx?ID=8) for exeample.

8 is the unique value of the current row in the grid view.

In WebForm1.aspx?ID=8 page_load I get ID value and send to the reporting service for show report in ReportViewer.

All things is ok.

Now I want to add an AspButton to grid view form that when I click it, All IDs in grid view send to the WebForm1.aspx?ID=(ID[i]).

For example when grid view has 40 rows, All 4 IDs send to the report page and ReportViewer shows 40 page. Every page for 1 ID.

What should I do?

</div>

Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>