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

Unable to use Session Value with HTML5 Report Viewer

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Harry
Top achievements
Rank 1
Harry asked on 29 Aug 2017, 03:01 PM

I have a web application designed with Telerik ASP.Net AJAX tools. There are many reports in the application being presented to users, these reports were made using Telerik.Reporting assembly about 4 years back. Many of these reports are using HTTP session values to populate some text values. Code used for which is as shown under.

txtUserCodeId.Value = System.Web.HttpContext.Current.Session["BackgroundCode"].ToString();

There is a need now to update these reports with some updates. I have tried to use the HTML5 Report Viewer. I have been able to get it to work, however all the session values being used are now not holding any value and come up with null exception giving errors. 

These session values are not report parameters, which I have been able to assign as required. Do I have any options to use session values or alternative methods.

Regards and Thanks...

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 01 Sep 2017, 09:51 AM
Hi Harry,

You might need to switch to report parameters to pass such values to the report and its report items. The topic about session is discussed in detail here: Session is null in telerik reporting.

Regards,
Nasko
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Harry
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or