Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We can fine-tune the behavior of our Ajax requests by setting values for the properties of the AjaxOptions object that we pass to the Ajax.BeginForm helper method. In the following sections, we explain what each of these options does and why they can be useful.
When we set up our Ajax-enabled form in Listing 19-7, we passed in the name of the action method that we wanted to be called asynchronously. In our example this was the AppointmentData action, which generates a partial view containing a fragment of HTML.