Asynchronous JavaScript with XmlHttpRequest – C# Example
Download the latest Ajax.dll (5.5.13.1) to use it for free in your web projects.
To learn more about AJAX, visit:
Wikipedia
A New Approach to Web Applications
To download this C# example click here.
There is a usage guide (will be updated in the next days) available for the first version of the free Ajax.NET:
AjaxGuide.doc
quickGuide.txt
Examples using the free Ajax.NET library
This example will post a form to the server, invoke the Test1 method there and return a HTML string.
On the server you will have a typical method with an additional attribute:
[Ajax.AjaxMethod] public string Test1(string firstName, string familyName, string email, string comment) { string html = ""; html += "Hello " + firstName + " " + familyName + "
"; html += "Thank you for your comment "; html += System.Web.HttpUtility.HtmlEncode(comment); html += "."; return html; }