{"id":11,"date":"2008-05-08T00:00:00","date_gmt":"2008-05-08T00:00:00","guid":{"rendered":"http:\/\/bloodforge.com\/?p=11"},"modified":"2020-02-20T01:34:27","modified_gmt":"2020-02-20T01:34:27","slug":"ajaxcontroltoolkit-is-undefined-javascript","status":"publish","type":"post","link":"https:\/\/bloodforge.azurewebsites.net\/index.php\/2008\/05\/08\/ajaxcontroltoolkit-is-undefined-javascript\/","title":{"rendered":"&#8216;AjaxControlToolkit&#8217; is undefined (javascript)"},"content":{"rendered":"\n<p>I got this annoying error recently in a website I&#8217;ve been working on.&nbsp; It worked perfectly fine locally, it worked fine after uploading to the web server on my machine and other machines in the lab (various browsers).&nbsp; Then, it turns out, it doesn&#8217;t work on (one of) the client&#8217;s machines.&nbsp; Of course, I&#8217;m unable to replicate the error locally.<\/p>\n\n\n\n<p>I looked around and it seems the first solution was to clear the cache.&nbsp; A lot of people said that Ctrl+F5 works, others said they needed to manually clear the cache and then restart the browser.&nbsp; Well, neither of those worked.<\/p>\n\n\n\n<p>Fortunatelly, the solution turned out to be pretty easy:&nbsp; Set the &#8220;CombineScripts&#8221; property of the ToolkitScriptManager to false.<\/p>\n\n\n\n<p>&nbsp;<strong>&lt;ajaxToolkit:ToolkitScriptManager&nbsp;runat=&#8221;server&#8221;&nbsp;ID=&#8221;ajaxScriptManager&#8221;&nbsp;EnablePartialRendering=&#8221;true&#8221;&nbsp;CombineScripts=&#8221;false&#8221;&nbsp;\/&gt;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got this annoying error recently in a website I&#8217;ve been working on.&nbsp; It worked perfectly fine locally, it worked fine after uploading to the web server on my machine and other machines in the lab (various browsers).&nbsp; Then, it turns out, it doesn&#8217;t work on (one of) the client&#8217;s machines.&nbsp; Of course, I&#8217;m unable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/posts\/11\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bloodforge.azurewebsites.net\/index.php\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}