Pass JSON array from c# to jQuery
问题 I'm doing jQuery autocomplete. Works fine if I put hard codded JSON array. But it fails when I pass the array from c#. Please help, I spend enough time with it and I'm stuck! Here is my jQuery code in AutoComplete.aspx <script type="text/javascript"> $(document).ready(function () { var msgbox = $("#status"); $.ajax({ type: "POST", //Page Name (in which the method should be called) and method name url: "AutoControl.aspx/GetData", //else If you don't want to pass any value to server side