Jack
Jack

Reputation: 10037

ASP.net Ajax: Use Code behind function instead web service

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.

Upvotes: 0

Views: 2178

Answers (2)

Sean Bright
Sean Bright

Reputation: 120654

This seems to be what you are looking for.

Upvotes: 1

Dillie-O
Dillie-O

Reputation: 29725

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.

Upvotes: 1

Related Questions