Ferhat Arslan Ferhat Arslan - 1 year ago 122
Javascript Question

How can i change Popup Content ASP.NET MVC

I have Bootstrap modal popup:

<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button data-dismiss="modal" class="close"><span>&times;</span></button>
<div class="modal-title"> Links </div>
<div class="modal-body">
<li>@Html.ActionLink("Links", "Links", "Home")</li>

when i click links i want change popup content to action result.

How can I do?

Thank you.

Answer Source

Merhaba, Actionlink ile yapamazsın.


şeklinde bir buton koyup javascript tarafında alacağın içeriği "modal-body" class ının içerisine basabilirsin.

$(".modal-body").html("yeni içerik");

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download