Author: javacrazy | Posted on: 8/15/2008 9:38:10 AM | Views : 1213

Question:
How do I return JSON-formatted data from ASP.NET service? Found the article (please see reference); however, it's returning XML instead of JSON.
Please help.
Steve ho
=========

 
Reference: http://blog.davebouwman.net/2008/06/10/AccessingASPNETWebServicesWithDojoxhrGet.aspx
Output:
<?xml version="1.0" encoding="utf-8"?><string xmlns="http://microsoft.com/webservices/">Hello World</string>  === cmsWS.asmx.cs ===
 using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Script.Services;
namespace WSLCBWS
{
    /// <summary>
    // ...

Go to the complete details ...