Archive

Posts Tagged ‘JavaScript’

How To Fix: ‘Sys’ is undefined or ‘AjaxControlToolkit’ is undefined javascript errors

September 15th, 2011 No comments

I developed an ASP.NET application for my company that is configured on several laptops. Yesterday I was given the task to fix an error that was causing the ASP.NET Ajax features to flake and not work. I spent hours on Google searching for an answer. If you did before reading this article, I wont be asking you to edit your web.config file or setting the CombineScripts property for the ToolkitScriptManager to false. I tried all of those and alas the problem remained. You are free to try those if my solution does not work for you.

I fixed this issue by pure chance. While troubleshooting, I realized that the clock was showing the incorrect date and time. I merely corrected that and realized soon after that everything worked flawlessly. There were no moreĀ ‘Sys’ is undefined or ‘AjaxControlToolkit’ is undefined javascript errors. I figured this error occurs since the last modified date on the assemblies associated with ‘Sys’ and ‘AjaxControlToolkit’ would have had a future date and caused a problem. What problem specifically? I am unable to answer even after some research on Google.

I hope that my solution will save you some time. Please let me know in the comments if it helped!

Implementing JavaScript Alert on Server Side

October 17th, 2010 1 comment

Ever so often, an application must communicate with its user when it is working. The most basic of methods is to display a popup message, usually when a task is complete or some error has occurred. In windows form programming, displaying a popup message box to the user is really easy. Unfortunately, this is not so simple when doing web programming, specifically ASP.NET. There is no native method to initiate a message box in ASP.NET. Read more…