Although the ASP.NET AJAX server controls require WebForms, the clientside JavaScript files are platform independent (there have been several examples posted in the past using them PHP) . You'll need to download the Microsoft AJAX Library (which can be found
here) and then reference the javascript files in your page with <script src=""> tags. However, there currently aren't any helpers for working with this - you'll have to write the javascript
manually.
There is an AjaxHelper property on ViewPage which I assume is where the helpers will be added in future.
You may find this blog post of interest - Nikhil adds AJAX support using some custom base classes and extension methods. The sample application uses Script# rather than ASP.NET AJAX, but the concepts would
be similar.
Marked as answer by Haacked on Dec 19, 2007 09:31 AM
tgmdbm
Contributor
4392 Points
883 Posts
ASPInsiders
MVP
ASP.NET AJAX Client Library and MVC
Dec 18, 2007 08:58 AM|LINK
Does anyone know how to use the ASP.NET AJAX Client Library with MVC without having the go back to using <form runat="server"> ???
When will MVC support AJAX natively?
JeremyS
Member
506 Points
99 Posts
Re: ASP.NET AJAX Client Library and MVC
Dec 18, 2007 01:56 PM|LINK
Although the ASP.NET AJAX server controls require WebForms, the clientside JavaScript files are platform independent (there have been several examples posted in the past using them PHP) . You'll need to download the Microsoft AJAX Library (which can be found here) and then reference the javascript files in your page with <script src=""> tags. However, there currently aren't any helpers for working with this - you'll have to write the javascript manually.
There is an AjaxHelper property on ViewPage which I assume is where the helpers will be added in future.
You may find this blog post of interest - Nikhil adds AJAX support using some custom base classes and extension methods. The sample application uses Script# rather than ASP.NET AJAX, but the concepts would be similar.