report viewer

I have page
That has a gridview..


IA m trying to call reporting services report in Report view if I click ID
For example, if I click ID 1001 will pass the parameter 1001
And run a reporting services report in Report viewer on new web page..

How can I do this? Is there a example I can take a look?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

first you have to make a report that accepts parameters. then you have to embed it into a webpage. lastly you have to pass the parameter from your viewing page to report page.

do you know how to create reports that accept parameters.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
refer below url on how to pass dynamic parameters to reports

once you do that then we can move forward
jung1975Author Commented:
i know how to create reporting services report with parameter..
i just wnat to know how to pass the paratmenter form the grewview to reporting services report in report view control?

any example?
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

in that case you have an hyperlink in your gridview something like this

<asp:TemplateColumn HeaderText="Transaction No.">
         <asp:Hyperlink runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "TXNNumber")%>' NavigateUrl='<%# "PointDetails.aspx?Transaction=" & DataBinder.Eval(Container.DataItem,"TXNNumber") %>' ID="Hyperlink1"/>


on the page load have something like this

Dim TxnNo As String = Request.QueryString.Item("Transaction")
loadReport(TxnNo) 'Function to load report.
sorry forgot to mention...TxnNumber is you ID. and replace points details with your report page path
on the page load of the report page have something like this

Dim TxnNo As  String = Request.QueryString.Item("Transaction")
loadReport(TxnNo)  'Function to load report.
jung1975Author Commented:

on the report page..
how to pass the parameter to reporting services report..
let;s say, if i have a report in http://prod1/reportserver
and it;s call Auditreport  and it accepts the parameter @ID ...

how can I call this report in repot viewer and and pass the parameter @ID?
You need to load the report using a Function. that would solve the issue.
Pass the ID to the function and let the function pass the ID as the parameter to the report.
jung1975Author Commented:
so how to create a loadreport function?

have a look at the url i gave above.
jung1975Author Commented:
yes.. thanks.. but is there Reporting services example not Crystal report?
thakns for your help!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.