Last active
April 24, 2016 01:15
-
-
Save AlexanderLindsay/f9ff7bc339e73fc33f7dd26a97389bee to your computer and use it in GitHub Desktop.
A razor link that opens a bootstrap modal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* Create a link that calls the controller method that returns the partial view*@ | |
@Html.ActionLink("Open Modal", "ModalAction", "Home", new { Id = id }, new | |
{ | |
@* Needed to link to the html of the modal*@ | |
data_target = "#modal-container", | |
@* Tells the bootstrap javascript to do its thing*@ | |
data_toggle = "modal" | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment