Answer the question
In order to leave comments, you need to log in
The modal window is not called from the partial view, but a new window is opened, why is that?
I call the modal from the `Guns.cshtml` partial view, the `Guns.cshtml` partial view is loaded via Ajax into the `Main.cshtml` partial view.
@using (Ajax.BeginForm("Guns", "Admin", new AjaxOptions { UpdateTargetId = "active" }))
{
<input class="btn btn-success btn-lg adminbtn" type="submit" value="Оружия" />
}
@Html.ActionLink("Редактировать", "Edit", "Admin", new { id = 1 }, new { @class = "gunitem btn btn-info" })
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question