Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: Don't add localization scripts if Ajax control toolkit isn't enabled. [27884]

$
0
0
In __ExtenderControlBase.cs : 281__

__RegisterLocalization()__ is called also if AjaxControl Toolkit isn't used on the current page.

This will result in an Javascript error:

"Uncaught TypeError: Cannot read property 'UI' of undefined"
Comments: Unfortunately, I cannot reproduce this error based on the information you provided.   Extender's scripts keep rendering even when the Enabled property is set to false, because it is visible and OnPreRender has no reason not to be called. Opening a page without any extender on it while having AJAX Control Toolkit registered in Web.config does not produce any error either, because no extender can cause the OnPreRender call.   Would you please provide a simple sample project that illustrates this problem?

Viewing all articles
Browse latest Browse all 4356

Trending Articles