Solved

Passing Parameter to ReportViewer in URL

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now