hut in the web

ang aking bahay kubo, kahit munti...

More About Me...

ang blog na 'to ay naglalaman ng mga personal na experience sa mga kabalintunaan ng nakakasalamuhang tao o institusyon.

Another Tit-Bit...

iniisip ko pa kung anong ilalagay dito

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.


  1. Download and install the AJAX Extension and AJAX Control Toolkit from AJAX home.

  2. Add Reference
    • AjaxControlToolkit
    • System.Web.Extensions
  3. Inside web.config's system.web, I Add


  4. <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>

  5. On top of .aspx page, I Register:


  6. <%@ 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