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.

Calling WebMethod with parameters from jQuery ajax fails

I'm baffled by the following problem. I have a 'WebForm1.aspx' and a 'WebService1.asmx'. When I call a WebMethod …

jquery ajax webforms webmethod
Authentication failed during call webmethod from jquery.ajx with AspNet.FriendlyUrls and AspNet.Identity

If I call webmethod from jQuery.Ajax with installed Nuget packages Microsoft.AspNet.FriendlyUrls v 1.0.2 and Microsoft.AspNet.Identity v.1.0.0., …

jquery ajax webmethod
Throwing exceptions from .NET web service

I have a set of web services generated using the [WebMethod] attribute. Is it considered "good practice" to throw ArgumentException …

c# web-services exception-handling webmethod
Why Can WebMethod Access Session State Without EnableSessionState?

I have a method on a page marked as a [WebMethod] that uses some session state as part of its …

asp.net webforms asmx session-state webmethod
System.Threading.ThreadAbortException caused by Response.Redirect

In my application I am calling a WebMethod from JavaScript, where I am trying to redirect to some page: [WebMethod] …

c# asp.net exception response webmethod
How to pass json string to webmethod c# ASP.NET

Im trying to stringify a javascript object and then pass the string as a parameter to a WebMethod in Code …

javascript jquery asp.net ajax webmethod
Ajax data source (objects) :TypeError: f is undefined

I am working on my ASP.Net web application where I have to populate an HTML table with Ajax data …

jquery asp.net json datatables webmethod
JQuery Ajax WebMethod return an object

I have a web Method in my C# that is called via Jquery ajax method. The web method should return …

c# asp.net jquery ajax webmethod
Return large string from ajax call using Jquery to Web Method of ASP.NET

Inside my ASP.NET website I am calling a Web Method using Jquery as follows: $.ajax({ type: "POST", contentType: "application/…

jquery asp.net webmethod
Service AJAX requests with webmethod in ASPX page

I am trying to service AJAX requests with a method in my .aspx page. For some reason I am not …

vb.net jquery asp.net-ajax asp.net-3.5 webmethod