Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 02, 2013 03:10 PM by Careed
Feb 02, 2013 02:24 PM|LINK
I have a .NET Framework 4.5 ASP.NET web form project in VS 2012.
I added an asmx page to the project for web methods. The web service class is already marked with the [System.Web.Script.Services.ScriptService] attribute. What changes must I do in web.config to make my web methods output in JSON? The client is sending
Accept: application/json but the output of each web method is still in Xml. The current web.config generated by VS 2012 has no <handlers> section.
Feb 02, 2013 03:10 PM|LINK
Look at this:
However, since you're using ASP.NET 4.5, why not use Web API instead?