Solved

Populate Report Viewer with Values from a Web Page with C#

Posted on 2012-04-03
3
330 Views
Last Modified: 2012-06-27
I have a database table with the following fields:
UserID
FirstName
LastName
City
State
Zip
Gender
Hobby

I have a web page of which this table is the data source with on the fields:
Gender
Hobby
UserID

I want to use the values on the web page to populate report viewer with all the records in the table where gender, hobby and UserID equals the values on the web page.
The report can populate with either one, two or all three of the values.

Right now these values are in one session variable (oUserSources) that is not working.

Can someone help me with this?

Thanks!
0
Comment
Question by:jordanhelen
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 37804790
You'll need to create those three report parameters on your report, then pass in the values as applicable.  You report's dataset will need to take those parameters into account.

More info: http://msdn.microsoft.com/en-us/library/ms155917.aspx

Setting the values in ASP.NET: http://stackoverflow.com/questions/3155215/how-can-i-pass-a-parameter-from-asp-net-to-ssrs-report
0
 

Author Comment

by:jordanhelen
ID: 37811877
No comments.
0
 

Author Comment

by:jordanhelen
ID: 37811878
No comments.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 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

14 Experts available now in Live!

Get 1:1 Help Now