Release of AjaxHelper0.3 and AjaxHelperExample2

Source: Internet
Author: User

If you do not know what AjaxHelper is, see the Ajax-based MVC solution and AjaxHelper example in the. Net environment.

To modify the AjaxHelper0.3:

1. In order to facilitate js Code debugging, the main functions are no longer encapsulated in the AjaxHelper class and are directly accessed again;

2. added the Appender function to perform the callback operation of the insert class. Four insertion methods are supported. For details, see the example;

3. extended the system String class and added functions such as trim, ltrim, rtrim, and endwith similar to c #. For details, see AjaxHelper. js;

5. Add validateRequest = false to the Ajax. aspx page to support callback containing html tags.

4. Several new examples are provided.

:

AjaxHelper0.3

AjaxHelperExample2

AjaxHelperExample2 sample list:

1. Do not submit the specified Form.
2. No additional data is needed (the insertion location can be beforeBegin, afterBegin, beforeEnd, and afterEnd)
3. refreshing the DropDownList OnSelectedIndexChanged event and parsing RSS with the Xml Preview Control

Description of Form:

In the case of Ajax, if you want to submit a Form, the Form should be non-runat = server, because only one runat = server Form is allowed on An aspx page. At the same time, form cannot be nested, or if your aspx page itself contains asp.net WebControls, these WebControls must be included in the Form of runat = server.

Enjoy!

// End the 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.