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