[WebMethod(EnableSession=true)] public string HelloWorld() { int? Count = (int?)Session["Count"]; if(Count == null) { Count = 0; } Count++; Session["Count"] = Count; return "Hello World - Call Number : " + Count.ToString(); }
Using cookies. When you send HTTP requests, make sure to include a CookieContainer. (assuming you're using HttpWebRequest)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)