In order to use a webmethod of a webservice, we need to add the
reference of webservice in the <services> section of
ScriptManager. Under services you have to configure the servicepath. <asp:ScriptManager ID="ScriptManager1" runat="server"> <Services> <asp:ServiceReference Path="..\service1.asmx" /> </Services> </asp:ScriptManager> Inside JAvascript Use methods of this service directly like service1.methodname()
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="..\service1.asmx" />
</Services>
</asp:ScriptManager>
Inside JAvascript Use methods of this service directly like
service1.methodname()