You webmethod needs to be static
.
[WebMethod]
public static Details[] getDetails(string columnname, string inputVal)
More Related Contents:
- ASP.NET Calling WebMethod with jQuery AJAX “401 (Unauthorized)”
- How to get Windows Explorer type look and feel inside my Application? [closed]
- Ajax method call
- Passing array of strings to webmethod with variable number of arguments using jQuery AJAX
- jQuery AJAX call to an ASP.NET WebMethod
- jQuery Ajax calls to web service seem to be synchronous
- How to return JSON with ASP.NET & jQuery
- Basic Simple Asp.net + jQuery + JSON example
- ASP.NET jQuery Ajax Calling Code-Behind Method
- WebMethod not being called
- System.IndexOutOfRangeException: Cannot find table 0
- Check which ASP.NET was clicked
- How to Convert JSON object to Custom C# object?
- Making a Simple Ajax call to controller in asp.net mvc
- Calling a ‘WebMethod’ with jQuery in ASP.NET WebForms
- How to implement real time data for a web page
- How can I post a list of items in MVC
- Posting JSON Data to ASP.NET MVC
- How to get rendered html (processed by Javascript) in WebBrowser control?
- Rendering Partial Views using ajax
- MVC 4 Edit modal form using Bootstrap
- Is there a standard way to encode a .NET string into JavaScript string for use in MS Ajax?
- Uploading File using Ajax in Asp.Net Core
- A potentially dangerous Request.Form value was detected from the client
- Access ASP.NET control from static [WebMethod] (JS ajax call)
- ASP.NET Parse DateTime result from ajax call to javascript date
- pass jquery json into asp.net httphandler
- Asp .NET Button – OnClientClick=”return function()” vs OnClientClick=”function()”
- Document.Ready() is not working after PostBack
- Web API complex parameter properties are all null