Access WebMethod from Code Behind in ASP.Net

Last Reply 10 months ago By dharmendr

Posted 10 months ago

How to access webmethod and its function in web application using codebehind c#,in web application there  no app_code folder generated automatically

Posted 10 months ago

Hi mukesh1,

To access a webmethod from code behind you need to make Ajax call using jquery or us Ajax PageMethods.

Refer below articles.

Call WebMethod from JavaScript with parameters in ASP.Net using C# and VB.Net

Calling ASP.Net WebMethod using jQuery AJAX