ASP.NET - call webservice method in javascript

Asked By mani on 03-Jul-12 02:26 AM
 <script type="text/javascript">
        function BrowserClose()
      {
      var SessionID = "<%=Session.SessionID%>";
      PageMethods.sessionclear();
      alert(SessionID);
      
      }

    </script>

hi..i used ablove script and calling sessionclear function from webservice..
but i cannot access pagemoethos in my javascript..

how can i call webservice from jacascript??any help??
Jitendra Faye replied to mani on 03-Jul-12 04:27 AM
Refer this article here you will get example to call webservice using javascript-

 

http://www.hendricksongroup.com/code_call_web_service_javascript.aspx