Access WebMethod from Code Behind in ASP.Net

Last Reply 29 days ago By dharmendr

Posted 29 days ago

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

You are viewing reply posted by: dharmendr 29 days ago.
Posted 29 days 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