Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Because your partial view should contain modal-body and not modal-content. Also Adding modal-dialog inside model root element solves the syling issue. --- Actually, my partial view already did contain the modal-header, modal-body, and modal-footer exactly per your example. And I already had the modal-dialog div as well. Sorry I didn't show it (I was trying to only show what the author showed). Oddly, without changing anything at all, I wake up today and the issue isn't happening anymore. It works perfectly! Arghhh!! I'm marking your answer as correct, but I think you should update it. Commented Dec 21, 2017 at 15:52
  • Hi, I'm trying to implement the exact same code but the href doesn't get executed.I think that something in the template blocks it, any idea? Commented Feb 10, 2018 at 15:27
  • @JeanJimenez , If you are using URLAction then try raw url instead or paste you code in paste bin or ask a new question. Commented Feb 11, 2018 at 16:08