Click here to Skip to main content
16,015,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a WebMethod static function that gets called from autocomplete textbox.

There is something in my project that prevents the page method from returning JSON. I've checked the code, it works if I open new clean project.

The project is .NET 3.5, the control is not within update panel.

Full function writeup is in this question[^] if someone needs to check it.

I need ideas and hints. Anyone had similar problem before? I've lost three days already and I don't know where to look anymore.


I've tried:
writing directly into the Response via Response.Write and NewtonSoft JsonConvert
returning from [webmethod][scriptMethod] with output param type JSON
returning simple string and string array and list of string
commenting out sections of web config
ajaxToolkit Autocomplete Extender
jQuery UI autocomplete variations
plain javascript async request (essentially the internals of $.ajax)
moving the function call into the page without HTML (but of course ajaxToolkit gets it cluttered with various scripts :( )



Thank you.
Posted
Updated 18-Nov-14 22:22pm
v2

1 solution

R u sending JSON request type in your ajax call ?
 
Share this answer
 
Comments
Sinisa Hajnal 19-Nov-14 5:54am    
Yes, I do. See the link to my original question with full function writeup.

Thank you for the solution, but that is not it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900