
Make your application AJAX-enabled
This works for ASP.NET 2.0
First, Web Application Projects should be installed on your machine or better install the VS 2005 Service Pack 1 (SP1).
This is how I configure my current ASP.NET 2.0 Application to be an AJAX enabled.
First, Web Application Projects should be installed on your machine or better install the VS 2005 Service Pack 1 (SP1).
This is how I configure my current ASP.NET 2.0 Application to be an AJAX enabled.
- Download and install the AJAX Extension and AJAX Control Toolkit from AJAX home.
- Add Reference
- AjaxControlToolkit
- System.Web.Extensions
- Inside web.config's system.web, I Add
- On top of .aspx page, I Register:
<httpHandlers>
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"></add>
</httpHandlers>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
That's all!

0 comments:
Post a Comment