现在,当用户单击按钮 SARU 时,将AddGroupSARU
调用该方法。现在我想去 page Layout.cshtml
,所以当用户点击按钮时,Layout.cshtml
就会打开。
<button id="SARU" class="btn btn-inverse btn-large">
SARU</button>
<div class="span1">
<button id="AN" class="btn btn-inverse :hover btn-large">
AN</button>
<script type="text/javascript">
$(function(){
$('#SARU').click(function () {
$.post("@Url.Action("AddGroupSARU","User")");
});
});
</script>
</div>
@Html.Partial("~/Views/Shared/Layout.cshtml")
Layout.cshtml
当我想通过单击按钮转到页面时,在按钮页面的底部呈现布局。