Passing Parameter to ReportViewer in URL

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
JLEmletAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DotNetLover_BaanConnect With a Mentor Commented:
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
 
DotNetLover_BaanCommented:
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
 
JLEmletAuthor Commented:
Thanks for the response, but my issue is how to pass the parameter to the reportviewer within the page.  
0
 
DotNetLover_BaanCommented:
is that what you are looking for ?
0
All Courses

From novice to tech pro — start learning today.