I am going through this tutorial on codeplex, which is the MusicStore application.
In a senario it is adding music records to the shopping basket. Then it also allo
It is not referenced in the code, but it is mentioned in the tutorial. Seems like a leftover to me.
Quote from http://www.asp.net/mvc/tutorials/mvc-music-store-part-8:
...instead of using an Html.ActionLink to remove items from the cart, we’ll use Ajax.ActionLink:
@Ajax.ActionLink("Remove from cart", "RemoveFromCart", new { id = item.RecordId }, new AjaxOptions { OnSuccess = "handleUpdate" })
This method works very similarly to the Html.ActionLink helper method, but instead of posting the form it just makes an AJAX callback to our RemoveFromCart. The RemoveFromCart returns a JSON serialized result, which is automatically passed to the JavaScript method specified in our AjaxOptions OnSuccess parameter – handleUpdate in this case. The handleUpdate Javascript function parses the JSON results and performs four quick updates to the page using jQuery:
- Removes the deleted album from the list
- Updates the cart count in the header
- Displays an update message to the user
- Updates the cart total price
It's not used, it's left over from MVC 2. See http://mvcmusicstore.codeplex.com/discussions/263226