As the ScriptService is written in your initial post, returnResult is initialized to null and then never assigned to again before being returned. Has that changed since you posted? If not, make sure you assign a string to returnResult (and don't worry about
JSON serializing it; the ScriptService handler will do that for you).
gt1329a
All-Star
15379 Points
2502 Posts
ASPInsiders
MVP
Re: passing parameter to webservice through jquery
May 05, 2010 03:23 PM|LINK
As the ScriptService is written in your initial post, returnResult is initialized to null and then never assigned to again before being returned. Has that changed since you posted? If not, make sure you assign a string to returnResult (and don't worry about JSON serializing it; the ScriptService handler will do that for you).
A guide to combining jQuery and ASP.NET: jQuery for the ASP.NET developer