Solved

Passing Parameter to ReportViewer in URL

Posted on 2004-08-29
6
263 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
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.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

776 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