Monday, March 26, 2012

How do I convert a Non-Ajax ASP site to AJAX?

I have a fairly large project that is an standard ASP.NET C# site and I'd like to be able to use soem ajax on the main page, nothing big. I've installed ajax and the sample site runs fine, (of course it's been created as an ASP AJAX site from the beginning though). How do I make my ASP site work with ajax? The web config file?

Checkout these videos:
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=81
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=82


I followed the steps in the first video but when I try to add a ScriptManager to a page on my site I get the following error

Error 29 The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) C:\Path\Default.aspx.designer.cs 74 41

EDIT: I found out how to fix it. The video doesn't say that you had to add a ref to the dll. So after adding a ref toMicrosoft.Web.Extensions.dll, everything seems to work

No comments:

Post a Comment