RadControls version
|
Q3 2008 |
.NET version |
3.5 SP1 |
Visual Studio version |
2008 SP1 |
programming language |
ASP.NET, C# |
browser support |
all browsers supported by RadControls
|
PROJECT DESCRIPTION
I have created a project to demonstrate how to have a n-Tier hierarchy (data layer, class library, web app) and use the Telerik Reports. This demo allows the user to pass in a parameter to the constructor of the report, which can then be used to retrieve data from the backend database. Currently the dataset is created manually for demo purposes but this could be extended easily to bring back data from SQL server. Also this demo illustrates the use of a SQL Server Session state and a unique Machine key for your web app. To use this functionality you need to run aspnet_regsql.exe against your database to generate the necessary tables for asp.net to use a database backend for credentials and session state.
the 3 relevant lines of code to change in the web.config (excluding the addition of a connection string entry, are
<sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="ADD YOUR SQL CONNECTIONSTRING HERE" cookieless="UseCookies" timeout="60" regenerateExpiredSessionId="true"/> |
... |
<machineKey validationKey="ADD YOUR VALIDATION KEY HERE" decryptionKey="ADD YOUR DECRYPTION KEY HERE" validation="SHA1"/> |
... |
<authentication mode="Forms"> |
</authentication> |
|
Hope this helps someone as it took me a while to get this working the way I wanted it to.
Aniket