Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportViewer and DataSet from Session
Message
From
07/09/2010 13:37:12
 
 
To
07/09/2010 12:44:13
General information
Forum:
Microsoft SQL Server
Category:
Reporting Services
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01480402
Message ID:
01480422
Views:
35
>Hi,
>
>I have a reportviewer control on an ASPX page. I call this page from another page that has stored the dataset that I want the reportviewer to use in a session variable. So on the page with the reportviewer I can get the dataset out of the session variable. How do I tell the reportviewer to use this dataset?

I believe I have worked it out. I needed this code in the Page_Load:
dsClients = (DataSet)Session["Client"];
this.rvwClientList.LocalReport.DataSources.Add(new ReportDataSource("ClientList_Clients", dsClients.Tables[0]));
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform