What are the options can be configured in AJAX helpers?

Below are the options in AJAX helpers –
  • Url – This is the request URL.
  • Confirm – This is used to specify the message which is to be displayed in confirm box. 
  • OnBegin – Javascript method name to be given here and this will be called before the AJAX request.
  • OnComplete – Javascript method name to be given here and this will be called at the end of AJAX request.
  • OnSuccess - Javascript method name to be given here and this will be called when AJAX request is successful.
  • OnFailure - Javascript method name to be given here and this will be called when AJAX request is failed.
  • UpdateTargetId – Target element which is populated from the action returning HTML.

Comments

Popular posts from this blog

Explain what is routing in MVC? What are the three segments for routing important?

What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?

Explain what is the difference between View and Partial View?