Few jquery errors , Attention J Query Gurus, invalid label
Attention J Query Gurus J Query gurus can you put some light on this matter please?
I am using J Query method for Ajax calls in my asp.net projects
$.ajax({
type:”POST”,
url:”WebService/WsCountry.asmx/getCountryList”,
data:”{optionvalue:’”+checkedValue+”‘}”,
contentType:”application/json; charset=utf-8″,
datatype:”json”,
success:function(response)
In above I am using “datatype” as small characters, its working 100% for me in one project also i am not uisng “response.d” when I am using eval() method to convert it from json string to array. i was using var myObject= eval(“(â€+ eval(response)+ “)â€);
I creatd a second project and used same i.e (“datatype” as small characters) but it started throwing errors.
Then I switched back to proper syntax ie. “dataType” using “T” as caps and this line started throwing errors var myObject= eval(“(â€+ eval(response)+ “)â€);
“invalid label” after speding sometime i came to know that I need to use var myObject= eval(“(â€+ response.d+ “)â€); when i used response.d it started working.
Does anyone else experienced this type of problem in J query.
Tags: Asp.net, invalid label using ajax with asp.net, J Query

See this old article of using JQuery with webservice/pagemethod
http://weblogs.asp.net/sanjeevagarwal/archive/2008/07/29/Dynamically-create-ASP.NET-user-control-using-JQuery-and-JSON-enabled-Ajax-Web-Service.aspx