Actionlinkbutton Boostrapmvc - Passing values to controller. "MVC - C#"

Asked

Viewed 40 times

1

I’m trying to create a button with boostrap mvc, which when clicked will open a new tab with the data I want, but for that I need to pass an id to my controller, someone could help me because I can’t pass this id using Actionlinkbutton, would have another way???

Some example in bootstrap?

1 answer

1

I believe I do something similar.

In HTML:

<button href="#@Id" class="btn btn-warning btn-xs btConfirmar">
     <span class="glyphicon glyphicon-chevron-right"></span>
</button>

In Jquery:

$(".btConfirmar").on("click", function () {
    idAprov = $(this).attr('href').replace('#', '');
    // aqui voce pode chamar sua tela passando o ID 
}

Browser other questions tagged

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