jquery

JQuery 1.5 Cheat Sheet

JQuery 1.5 Cheat Sheet

By |March 11th, 2011|Coding, Uncategorized|0 Comments

Changing an ASP.NET web service to respond in Json instead of XMLj

Lately I have been writing a lot of my apps using JQuery and find myself using the ajax routine often. I prefer to communicate with Json instead of XML. The default response format for an ASP.NET web service is XML. To change your web method to respond in Json use the following method attribute:

[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false, XmlSerializeString = false)]

By |December 1st, 2010|Coding|0 Comments