Decrease Font Size
Increase Font Size
   BLOG

AjaxControlToolkit is undefined

'AjaxControlToolkit' is undefined |

'AjaxControlToolkit' is undefined (javascript) |

Microsoft JScript runtime error: 'AjaxControlToolkit' is undefined |

MultiHandleSliderExtender

 

Problem

I have an AJAX MultiHandleSliderExtender Control and ToolkitScriptManager on the web page and everything work fine. Then I decided to include a Master Page to it, at runtime, I received the following errors

Message: Invalid character
Line: 1
Char: 3
Code: 0
URI: http://download.ysatech.com/MultiHandleSliderExtender_w_Chart/default2.aspx?_...
Message: 'AjaxControlToolkit' is undefined
Line: 182
Char: 5
Code: 0

This is a very weird error, the page work fine without the present of a Master Page. I started to look around and found the solution here. The solution is to set the "CombineScripts" property of the ToolkitScriptManager to false.

<ajaxToolkit:ToolkitScriptManager runat="server" ID="ajaxScriptManager" EnablePartialRendering="true" CombineScripts="false" />