Donate

Custom Extender Type Or Class Is Undefined In AjaxToolkit ASP.NET

Hi!
When running an asp.net app that includes an ajax custom extender control, a javascript alert pops up message "EXTENDER is undefined". Sample error message:
CustomExtenders.DisabledTextBehavior is undefined
where: CustomExtenders.DisabledTextBehavior is Namespace.Type

After troubleshooting for several hours, I came up with the solution:
1. Download Ajax Toolkit Stable Release for the specific .NET Framework.
 I tried versions for September release and it's not working.
2. Replace code:
CustomExtenders.DisabledTextBehavior.registerClass('CustomExtenders.DisabledTextBehavior', AjaxControlToolkit.BehaviorBase);  
To
CustomExtenders.DisabledTextBehavior.registerClass('CustomExtenders.DisabledTextBehavior', Sys.Extended.UI.BehaviorBase);
Note: AjaxControlToolkit.BehaviorBase is used in previous versions of AjaxToolkit.
Cheers!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.