Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 19. Unobtrusive Ajax > Setting Ajax Options

19.2. Setting Ajax Options

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.

19.2.1. Ensuring Graceful Degradation

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial