Top "Webmethod" questions

WebMethod is an attribute that is marked to indicate that a function (usually in .NET) in a web service is exposed to the consumers of the web service.

"Invalid JSON primitive" in Ajax processing

I am getting an error in an ajax call from jQuery. Here is my jQuery function: function DeleteItem(RecordId, UId, …

c# jquery webmethod
How to call webmethod in Asp.net C#

I want to call a web method in asp.net c# application using the following code Jquery: jQuery.ajax({ url: …

c# jquery asp.net ajax webmethod
How to call an ASP.NET WebMethod in a UserControl (.ascx)

Is it possible to place a WebMethod in an ascx.cs file (for a UserControl) and then call it from …

c# jquery asp.net webmethod ascx
ASP.NET Calling WebMethod with jQuery AJAX "401 (Unauthorized)"

Been stuck with this for hours {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} I'm trying to call this WebMethod …

c# jquery asp.net ajax webmethod
Call non-static method in server-side from client-side using JavsScript

How do I call a non-static method in server side(aspx.cs) from client side using javascript (aspx)....? As far …

c# asp.net asmx webmethod
Calling a 'WebMethod' with jQuery in ASP.NET WebForms

I've set a breakpoint in the following WebMethod but I'm never hitting the breakpoint. cs: [WebMethod] public static string search() { …

jquery asp.net ajax webforms webmethod
Calling webmethod ina aspx.cs file using jquery ajax

I have a default.aspx.cs which contains my webmethod to call and I have my js file that containg …

c# jquery asp.net ajax webmethod
The length of the string exceeds the value set on the maxJsonLength property

I am loading tab content data through jQuery's ajax post method via web method with around 200-300 records. And getting …

jquery asp.net webmethod
How to return multiple values from a webservice?

I am very new to the world of web services so please bear with me. I am creating a very …

c# visual-studio-2010 web-services asmx webmethod
How to download file via jQuery ajax and C#

I want to download a file using jQuery Ajax web method, but it's not working. Here is my jQuery ajax …

c# jquery webmethod