Matt

Matt

  • NA
  • 2
  • 4.6k

Creating custom controls, having difficulty incorporating AJAX into them.

May 17 2012 10:55 AM

Hello,

I hope I posted this in the correct place.

Basically my goal is to create a custom control that has an Ajax AutoCompleteExtender and textbox field in it. This way, all I got to do is place this control throughout my projects, and all of the background stuff is nice and neat (e.g. the database queries to retreive the lists, as well as the .ascx code is all in one place).

I have done similar things like this with other controls, but none of which had an AJAX field in it. Everything compiles and runs fine, and the textbox is displayed properly, but when you type in stuff, nothing ever happens (I tested this code already under normal circumstances and not in a control and it works just fine).

The AutoCompleteExtender uses a webservice, and I'm wonder if maybe its not able to reach or call it? It seems this is the root of the problem. I placed the web service in the same folder as the control, and created it just like the tutorial (link is below).

Here is the AutoCompleteExtender tutorial I followed and my code is pretty much just like it:http://www.codeproject.com/Articles/201099/AutoComplete-With-DataBase-and-AjaxControlToolkit

If I could get some help or advice that would be greatly appreciated, thank you!


Answers (1)