The web method must be static, and it does not conform to the normal ASP.NET lifecycle.
In the web method, you cannot access the session or controls on the page.
Since it will not go through all the events, I donβt think your PreInit will be called, so you cannot restrict access through it.
Martin
source share