Saturday, March 24, 2012

problem in ajax website

hi

i am facing a problem in creating Ajax website.

When i am takingAjax enabled website option i am able to do everything fine.

But when i am taking a create Website option i am getting error . I have also includedScriptManager on the page which is required by most of the Ajax Controls to work properly.

Thanx in advance

Hi.

When you create an Ajax-enabled web site, the WEB.Config file created contains config section, HTTP handlers, HTTP modules all needed by AJAX.

One example is that the ScriptManager creates a call for javascript called ScriptResources.axd where axd is not known extension for your web-server
(unlike ASPX, ASMX, JS, ASHX etc.) The httpHandler section includes this extension and set it to be handled by AJAX extension (System.Web.Extensions.DLL file)

What you should do (especially when adding AJAX capability to an existing site) is to copy these additions to your web.config file from an "AJAX-Enabled"
web site. Then you won't e having these errors.


No comments:

Post a Comment