Sunday, March 29, 2015

Asp.net ajax

http://www.codeguru.com/csharp/.net/working-with-ajax-helper-in-asp.net-mvc.htm

http://chsakell.com/2013/05/10/ajax-and-jquery-in-asp-net-mvc/

http://www.c-sharpcorner.com/uploadfile/3d39b4/working-with-html-beginform-and-ajax-beginform-in-mvc-3/


http://www.codeguru.com/csharp/.net/working-with-ajax-helper-in-asp.net-mvc.htm
PropertyDescription
UrlThe Url property indicates a URL to which the form is to be submitted. You can also specify a controller and action method in the BeginForm() method instead of setting the URL property.
HttpMethodThe HttpMethod property indicates the HTTP method (GET or POST) to be used while making an Ajax request.
ConfirmThe Confirm property is used to specify a message that will be displayed in a confirm dialog to the end user. If user clicks OK on the confirmation dialog the Ajax call is made.
OnBeginThe OnBegin property specifies a name of JavaScript function that is called at the beginning of the Ajax request.
OnCompleteThe OnComplete property specifies a name of JavaScript function that is called at the end of the Ajax request.
OnSuccessThe OnSuccess property specifies a name of JavaScript function that is called when the Ajax request is successful.
OnFailureThe OnFailure property specifies a name of JavaScript function that is called if the Ajax request fails.
LoadingElementIdWhile an Ajax request is being made you can display a progress message or animation to the end user. The LoadingElementId indicates an ID of a DOM element that is serving this purpose. Note that the Ajax helper will simply display and hide this element. Displaying some progress message of animation inside this element is your responsibility.
LoadingElementDurationThe LoadingElementDuration property specifies a time duration in milliseconds that controls the duration of the progress message or animation.
UpdateTargetIdThe UpdateTargetId property specifies an ID of a DOM element that will be populated with the HTML returned by the action method.
InsertionModeThe InsertionMode property governs how the HTML replacement should occur in a DOM element as specified by UpdateTargetId property. The possible values are InsertAfter, InsertBefore and Replace.

No comments:

Post a Comment