Ajax is defined as the abbreviation for "Asynchronous JavaScript + xml", which is asynchronous JavaScript and XML processing. In principle, the main is Ajax can be called HttpRequest to implement asynchronous communication with the server, and ultimately in the Web page to achieve a rich and user-friendly user interface
Ajax is defined as the abbreviation for "Asynchronous JavaScript + xml", which is asynchronous JavaScript and XML processing. In principle, the main is Ajax can be called HttpRequest to implement asynchronous communication with the server, and ultimately in the Web page to achieve a rich and user-friendly user interface
Ajax use preliminary, configuration steps
1. Ajax.dll copy to the application system Bin directory, and then refer to Ajax.dll in the project reference, if not, you can download/files/singlepine/ajax.rar
2. Configure Web.config and add the following information
3. Suppose the application system is called document, the directory format is pages\ajaxtest
4. Establish the CS file AjaxMethod.cs under Pages\ajaxtest, add the following method
[Ajax.ajaxmethod]
[Ajax.ajaxmethod (Ajax.HttpSessionStateRequirement.Read)]
public static string Getnivnumber (String str)
{
return str;
}5. Create a page under Pages\ajaxtest ajaxform.aspx
AjaxForm
Onclick= "Testajax ();" >