Answer the question
In order to leave comments, you need to log in
How to autoload a partial view on a page?
@{
ViewBag.Title = "AdminPanel";
}
Admin Panel
<div>
@using (Ajax.BeginForm("Groups", new AjaxOptions { UpdateTargetId = "results" , LoadingElementId = "loading" }))
{
<input type="submit" class="btn btn-default" value="Groups" />
}
</div>
<div id="results">
</div>
<div id="loading" style="display:none; color:green; position:center; font-weight:bold;">
<p>Идет загрузка данных, ожидайте...</p>
</div>
</div>
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