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)
Syntax
public string OnComplete { get; set; }
public:
property String^ OnComplete {
String^ get();
void set(String^ value);
}
member OnComplete : string with get, set
Public Property OnComplete As String
Property Value
Type: System.String
The JavaScript function to call when the response data has been instantiated.
Remarks
The specified function is called whether the page update is successful or not. The call to this function occurs before a call to either OnSuccess or OnFailure.
To cancel the page update, return false from the JavaScript function.
See Also
AjaxOptions Class
System.Web.Mvc.Ajax Namespace
Return to top