0 out of 1 rated this helpful - Rate this topic

AjaxOptions.OnComplete Property

Gets or sets the JavaScript function to call when response data has been instantiated but before the page is updated.

Namespace:  System.Web.Mvc.Ajax
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public string OnComplete { get; set; }

Property Value

Type: System.String
The JavaScript function to call when the response data has been instantiated.

This function is called regardless of whether the page update is successful or not. The call to this function happens before a call to either OnSuccess or OnFailure.

To cancel the page update, the JavaScript function should return false.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ