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.

How to POST base64 to Webservice

I want POST one parameter which is base64 to webservice, but it doesn't work. string postData = "base64=hySGNg22yX0AIjNQvNJw0…

c# web-services base64 webmethod
Programmatically call webmethods in C#

I'm trying to write a function that can call a webmethod from a webserive given the method's name and URL …

c# web-services asmx webmethod
Providing a WebMethod that returns XML as a string.

I keep reading how everyone states to return a XmlDocument when you want to return XML. Is there a way …

.net xml web-services webmethod
Why WebMethod declared as Static?

I declared a WebMethod in my default.aspx.cs file.. [WebMethod] public static void ResetDate() { LoadCallHistory(TheNewDate.Date); } Why must …

asp.net webmethod
How to store Data from static WebMethods into the ViewState

Now I have done some research. I need to store some data that I have retrieved from an ajax call …

c# asp.net web-services viewstate webmethod
405: Method Not Allowed

EDIT: Summary: It seems that my web app can be accessed by anyone (only firefox or chrome) and by me …

.net wcf webmethod http-status-code-405
using web methods with master pages

I've got a function on all pages in my site which is located in my master page and I want …

jquery asp.net ajax webmethod
ASP .NET: Cannot call Page WebMethod using jQuery

I created a WebMethod in the code-behind file of my page as such: [System.Web.Services.WebMethod()] public static string …

jquery asp.net-ajax webmethod
What is the difference between ashx, asmx, axd + cs(handler), webmethod(in aspx) and async methods in asp.net framework 4.5?

I need to know the technical difference of those files. Which one is the best option? When and why should …

asp.net asmx ashx webmethod axd
JQGrid - Cannot call ASP.NET WebMethod but can with Ajax

I am new to jqGrid and I have found it difficult to follow the documentation jqGrid Documentation I cannot figure …

jquery asp.net json jqgrid webmethod