tags:

views:

972

answers:

2

Hi all. Is it possible not to use web service for ASP.net ajax instead call code-behind function to fetch data?

any example or link is much appericate.

+1  A: 

According to the ASP.NET AJAX documentation (at least for the AutoComplete TextBox control), if you do not provide the ServicePath property for the control to access, then the method that is to be called (specified in the ServiceMethod property) must be a page method.

I read this to say that you can simply create a method in your code behind file that matches the proper signature that the AutoComplete is expecting and you should be all set.

Dillie-O
+1  A: 

This seems to be what you are looking for.

Sean Bright

related questions