Solved

Passing Parameter to ReportViewer in URL

Posted on 2004-08-29
6
266 Views
Last Modified: 2008-02-01
Can someone give me an example of how to pass a parameter to the reportviewer using a URL.  I've created a aspx page that holds the reportviewer.  I just would like to be able to call this page and pass a parameter using the URL.  For example:

http://chelsea/webform1.aspx&listid=12345

I cannot find any direct examples of this.  Can anyone help?
Thanks,
Jim
0
Comment
Question by:JLEmlet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 11927264
Hi there...
you can use response.redirect...

Dim ParamValue As Integer = 12345
Dim MyUrl As String
MyUrl = "chelsea/webform1.aspx&listid=" & ParamValue
Response.Redirect(MyUrl)

-Baan
0
 

Author Comment

by:JLEmlet
ID: 11929473
Thanks for the response, but my issue is how to pass the parameter to the reportviewer within the page.  
0
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 500 total points
ID: 11930262
in the page load event of that page , just get the parameter value and pass it to the report viewer...
Dim ParamVal As String
ParamVal = Request.QyeryString("ParamValue")

If there are more number of parameters, use session variable to store them, and use them later.
0
 
LVL 18

Expert Comment

by:DotNetLover_Baan
ID: 11930265
is that what you are looking for ?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question