Search code examples
asp.net-mvcjquery-uiloadingactionlink

Html.ActionLink and loading image display?


I m showing a jquery ui dilog with link below. dialog opens 2 seconds later and I want to show a loding image until it opens. How can I do this?

@Html.ActionLink("Ekle", "AddCustomer", "Customer", routeValues: null, htmlAttributes: new { id = "AddCustomerLink", data_dialog_title = "Yeni Müşteri" })

Thanks.


Solution

  • Use Ajax.ActionLink instead and specify the LoadingElementId property.