AjaxControlToolkit AutoCompleteExtender Bug in an UpdatePanel
While working with the AutoCompleteExtender in the AjaxControlToolkit I ran across a bug where if the control happens to reside in an UpdatePanel, the AutoComplete trigger wouldn't get called after a PostBack is triggered in the UpdatePanel.
I found the following solution in the www.asp.net forums. All credit goes to psyafter who came up with the solution, I am just re-posting it here to share it with anyone else who runs into this bug.
Open the source code of the AjaxControlToolkit in Visual Studio
Open the AutoComplete\AutoCompleteBehavior.js file
Find the following function:
dispose: function() {
Add this text:
if (this._popupBehavior) {
this._popupBehavior.dispose();
this._popupBehavior = null;
}
Right before this line in the file:
AjaxControlToolkit.AutoCompleteBehavior.callBaseMethod(this, 'dispose');
Recompile and replace your toolkit dll
Aaron
http://www.churchofficeonline.com