Install from NuGet - https://nuget.org/packages/Web.Ajax or manually by:

Setting up to use Web.Ajax

  1. Download Web.Ajax.dll
  2. Add a reference to Web.Ajax.dll in your web project.
  3. Add the following handler to your web.config
<!--For Classic application pools-->
<system.web>
    <httpHandlers>
	<remove verb="*" path="resource.axd" />
	<add verb="GET,HEAD" path="resource.axd" type="Web.Ajax.Handlers.Resource" validate="true" />
    </httpHandlers>
</system.web>

<!--For Integrated application pools-->
<system.webServer>
    <handlers>
        <add name="ResourceHandler" path="resource.axd" verb="*" type="Web.Ajax.Handlers.Resource,Web.Ajax" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>
</system.webServer>

Setting up to use the Controls

  1. In addition to the above add the following to your web.config to use the controls
<system.web>
    <pages>
        <controls>
            <add tagPrefix="c" namespace="Web.Ajax.Controls" assembly="Web.Ajax" />
        </controls>
    </pages>
</system.web>

Don't Forget

  1. Change your page class to inherit from Web.Ajax.Page (instead of System.Web.UI.Page)

Last edited Jan 12, 2013 at 3:53 PM by dpembroke, version 12

Comments

No comments yet.