Ajax using a beginner tutorial

Source: Internet
Author: User
Tags add implement interface string visual studio
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 ();" >
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.