This is a migrated thread and some comments may be shown as answers.

Get parameter from ASP url

1 Answer 168 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 12 Jun 2011, 05:32 AM
I have looked through the forums and demos but have not seen a demonstration of this.

I created a a class library and report (w/ parameter). I then added a reference to the project in a ASP website and added a viewer and my report to a control on a page. The report works great when I select the parameter from my list of values.

What I would like to do, and haven't seen an example of, is navgate to the page my report is on and pass the parameter in the url.

An example of the url would be;
http://localhost:50536/Pages/Voucher.aspx?TrackID = 1000

1.) Can you provide me with a rundown on how this is accomplished?
2.) What changes would I need to make to my class library/report to change from manually setting the parameter?

The website is ASP with VB.net code behind.
TelerikReporting Q1, 2011

Thanks for the help,

1 Answer, 1 is accepted

Sort by
0
IvanDT
Telerik team
answered on 13 Jun 2011, 05:11 PM
Hello James,

There are several approaches you can use but one that we are suggesting is through QueryString property of Request Object. It can be used for passing and getting parameters from the url. You can find additional information in the following articles:  Concerning your second question Telerik Reports are standard .NET classes so any approach you would normally use when working with classes is applicable to Telerik Reports as well.

All the best,
IvanDT
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
IvanDT
Telerik team
Share this question
or