Solved

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

Posted on 2012-04-03
3
328 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
Comment Utility
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
Comment Utility
No comments.
0
 

Author Comment

by:jordanhelen
Comment Utility
No comments.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Written by Valentino Vranken. Introduction: The first step of creating a SQL Server Reporting Services (SSRS) report involves setting up a connection to the data source and programming a dataset to retrieve data from that data source.  The data…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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