Wednesday, 2 October 2013

Best Way to Make AJAX Call from WebForms Page

Best Way to Make AJAX Call from WebForms Page

Is there a recommended way to make an AJAX call within a WebForms
application?
I know there is the built-in ASP.NET AJAX components, but they seem a bit
heavy. I'm used to doing this in MVC and it seems very clean.
I can use Page Methods, but they require that my method is static, which
makes it more difficult to access my database, etc.
I assume I can also just use jQuery to make the call, although attempts at
this have failed in the past, usually due to problems with the way data
was returned (JSON, etc.).
My goal is get pass a string fragment and get back a list of items that
match that fragment. Speed would be nice. Can I get some recommendations?

No comments:

Post a Comment