Question Help !!! SessionId from report using VB code

bluemoon2181

New member
Joined
Nov 24, 2008
Messages
1
Programming Experience
5-10
Hi all,
I have created a report and in properties code, I have written following VB code to find

out the sessionId of current session:

Code:
Public Function getSessionId() As String
        Dim sessionId As String
        sessionId = System.Web.HttpContext.Current.Session.SessionID
        Return sessionId
End Function
The code is referenced to System.Web.dll

In report I have created a textbox in which I want to show this sessionId, so my

expression in the textbox is "=Code.getSessionId()"

When I run this report I see "#Error" instead of sessionId. Can anyone tell me why this is

happening ?

Thanks,
Prashant
 
Top Bottom