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.

Download File from C# through Web Method via Ajax call?

I have tried to download the file from the server through the webmethod but it has not work for me. …

ajax webmethod
An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.Session.get'

I'm getting error like An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.…

c# asp.net session webmethod
setting jsonSerialization maxJsonLength in ASP.net Web.Config gives 500 error

So, I keep getting the 500 - Internal server error page on my .net site when I set the maxJsonLength in …

jquery ajax web-config webmethod
Calling VB.NET WebMethod Function from Javascript

I have a VB.NET function which looks like this: <WebMethod()> _ Public Shared Function AuthenticateUser(ByVal UserInfo As …

javascript asp.net vb.net pagemethods webmethod
Getting "401 Unauthorized" error consistently with jquery call to webmethod

I have been struggling to get my jquery call to a webmethod to work. I am being bounced by the …

asp.net jquery authentication http-status-code-401 webmethod
Calling a page's webmethod from javascript on a different page

Is it possible to call a method attributed with [WebMethod] from javascript on a different page? I.e. using the …

c# asp.net ajax webmethod
Pass a user defined object to ASP.NET Webmethod from jQuery, using JSON

I am trying to pass in some simple JSON to an ASP.NET 4.5 Webmethod from jQuery. And it is not …

asp.net json jquery webmethod
Calling a WebMethod using jQueryAjax "GET"

i have a ajax request which works well using "POST" but when used "GET" it gives me the following error, {"…

jquery asp.net-ajax webmethod
request.querystring not found in static method

I have static method in which I want to extract querystring value of the request. But it gives me null …

c# asp.net static-methods webmethod pagemethods
jquery ajax 200 OK JSON.ParseError

I have a control which has a textbox which, when its content changes, will tricker this javascript function: page parameter …

jquery webmethod