Tuesday, April 3, 2007

Enable AJAX for Your Existing ASP.Net 2.0 Web Service Project

It's easy to enable your existing ASP.Net 2.0 Web Service to accept client side script call as following:

First, copy the tags described in post "Enable AJAX for Your Existing ASP.Net 2.0 Website Project".

Second, add "[System.Web.Script.Services.ScriptService()]" attribute for your web service class.

That's it.

Monday, April 2, 2007

Enable AJAX for Your Existing ASP.Net 2.0 Website Project

Actually, it's very easy to enable AJAX support for your existing ASP.Net 2.0 website project as following steps:
  • Create a AJAX enabled website project and open the web.config file of this project.
  • Copy the "configSections", "Pages", "compilation", "httpHandlers", "httpModules", "system.web.extensions", and "system.webServer" tags into your existing website project's web.config file. Please note that "configSections" should be the first child of "configuration" tag.