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

Pass Session to Report

1 Answer 151 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 29 Nov 2011, 07:56 PM
Hi Telerik Team,

    Is it possible to pass login session (credentials/values) from an asp page to a table datasource in telerik report? if yes, then how do I do it?
    I am using Q1 version. I followed some samples/examples to connect datasource programatically from telerik website but that doesn't produce the results. It causes error message " ExecuteReader: Commandtext property is not initialized for table 1".
    I have login session information in  .aspx page containing reportviewer and one .cs report which is attached to reportviewer.
Would you please reply to dhara.savani@Xerox.com?

Thanks,
Dhara

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Dec 2011, 06:33 PM
Hi Max,

In order to follow Telerik Reporting the best practices, we highly recommend the new SqlDataSource component approach. The datasource components have full design time support. Additionally when our datasource components are used, handling of datasource parameters don't require any code and you can pass the credentials directly to a report parameter. You may find useful the following help resources:

Up to the error you have experienced make sure you have copied the connectionString from the application settings to the web.config file of your application. This is required in order to get the connectionString at run time. 

Kind regards,
Peter
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or