welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Friday, July 19, 2013

How to enable session in web service in

The simple trick is to enable the Session State before using it directly. This can be done by using the following attribute
[WebMethod(EnableSession = true)] // C#
<WebMethod(EnableSession:=true)> // VB .Net
Once you specify these lines over your web method you can use the session object naturally.


Post a Comment