Can i use session values inside a WebMethod?
I\'ve tried using System.Web.Services.WebMethod(EnableSession = true) but i can\'t access Session parameter
System.Web.Services.WebMethod(EnableSession = true)
There are two ways to enable session for a Web Method:
1. [WebMethod(enableSession:true)] 2. [WebMethod(EnableSession = true)]
The first one with constructor argument enableSession:true doesn't work for me. The second one with EnableSession property works.
enableSession:true
EnableSession