mvc ajax helpers,AjaxHelper

  • Post author:
  • Post category:其他


An example of ajax action

data-ajax=”true” is required, data-ajax-mode can be to have a value as replace, before, after,…

You use javascript function without parameter for each data-ajax-(failure, success, begin),

it seems to me.

Of course, added the jquery-ajax-unobtrusive script into the layout.

See the brad wilson’s blog http://bradwilson.typepad.com/blog/2010/10/mvc3-unobtrusive-ajax.html for a comparison AjxHelper and the html generated, also in complement the source code ajax unobtrusive.