Actionlink + data-loading-text

Asked

Viewed 158 times

0

People need to put this data-loading-text in this link action only I’m not getting

Action Link

 @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new { @class = "btn btn-warning", @style = "margin-right: 735px;" })

data-loading-text

<i class='fa fa-circle-o-notch fa-spin'></i> Carregando"

someone can help me ?

2 answers

0

People I searched here on the net and I managed to solve my problem

 @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new { @class = "btn btn-warning DesabilitarBotao3", data_loading_text = "<i class='fa fa-circle-o-notch fa-spin'></i> Carregando", @style = "margin-right: 735px;" })

0


Just create the anchor via HTML.

<a href="@Url.Action("Listar", "Cadastro", new { cadastroId = id, area = "Formulario" })" class="btn btn-warning" style="margin-right: 735px;">
    <i class='fa fa-circle-o-notch fa-spin'></i> Carregando
</a>

See working on . NET Fiddle.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.