Wednesday, 23 April 2014

How can I use sessions in my class file?


   Declare the variable as
Private name As string

Public Property  name  () As string
Get
Return HttpContext.Current.Session(" name  ")
End Get
Set(ByVal value As string)
HttpContext.Current.Session(" name") = value
End Set
End Property


No comments:

Post a Comment