May
23
2007

Javascript not loading using AJAX for ASP.NET

Microsoft came out with an AJAX library for use with ASP.NET 2.0. They have a great support website located at ajax.asp.net. Lots of great videos and it works easily when you create a new website from scratch.

I ran into trouble when trying to use their AJAX library with an existing website. It wouldn’t give me any errors, the javascript just wouldn’t work with any of the AJAX controls. It was as if the AJAX didn’t exist!

After about an hour of searching and head scratching I figured that it must be web.config’s fault. I found a page that talks about updating your web.config for integrating the AJAX library into your site. Here it is:

http://ajax.asp.net/docs/ConfiguringASPNETAJAX.aspx

I followed all the directions and like magic, my site works with AJAX now! Phew.

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: AJAX,ASP.NET |

No Comments »

RSS feed for comments on this post.

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes