Does asp.net webmethod always return jsonified data? -


I have a general question that if an asp.net webmethod always returns data in 'json' form. Return of a WebMath DataType?

I am thinking that in a way I can get data from a webmath in 'HTML' rather than 'JSNA'?

Thanks

PageMethods ASP.NET is a part of AJAX Framework (Script Manager) .

By default, ASP.NET AJAX uses JSON against SOAP.

This is done by the design, primarily ASP.NET AJAX Javascript Library which has been optimized for working with JSN objects.

You override this default by specifying the [ResponseFormat] attribute on the web method.

[WebMethod] [ScriptMethod (ResponseFormat = ResponseFormat.xml)] Public XmlElement GetFoo (string URL) { < P> PageMethods and ASP.NET are a decent article on AJAX-enabled web services.


Comments