?
Solved

Passing Parameter to ReportViewer in URL

Posted on 2004-08-29
6
Medium Priority
?
267 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 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