Solved

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

Posted on 2012-04-03
3
332 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

696 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