The simplest Ajax callback library ever _ajax related

Source: Internet
Author: User
First I think of the CS in the Ajaxmanager, I just simplify it, remove unwanted and many more suitable for our habits of some methods.
I named him ajaxlite, because he only needs two classes to achieve AJAX functionality, in order to put the JS file without additional include, I put JS embedded in the DLL. A total of two files a JS, a CS file, two classes this is the simplest Ajax class library I have ever seen. Simply refer the compiled DLL file to your project and then register your user control or page in the Page_Load event as simple as possible, and the code is simple enough to say here.
1.Register: Finds the method that contains the Ajaxmethod property tag in the current control and registers it with the client;
2.Post: Find the method that contains the Ajaxmethod property label in the control by the type returned by the client and the callback's function to execute and return;
3.Render: Registers into the PreRender in the page lifecycle, and then renders the execute JS to implement the callback.
Download Address Http://xiazai.jb51.net/200810/yuanma/AjaxLite.zip
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.