While using
WebMethods
, you need to mark that method as
Static
. That is done because the method call does not instantiate the
Page
Class, which happens with normal Page
PostBacks. That is the actual benefit of Ajax Calls. More at -
Why do ASP.NET AJAX page methods have to be static?[
^].
Why are you using Static properties in a Web App? Static properties have application scope. So, you will end up showing details of a different user while trying to access a User's information.