ActionLinkButton BoostrapMVC - Passing values to controller. "MVC - C #" [closed]

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 this I need to pass an ID to my controller, someone could help me, because I can not pass this id using ActionLinkButton, would you have another way to do ???

Any example in bootstrap?

    
asked by anonymous 24.11.2016 / 19:14

1 answer

1

I think I do something similar.

No 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 
}
    
24.11.2016 / 19:23