@if (Request.IsAuthenticated && User.Identity.Name==\"administrator\") { 3条回答 不知归路 (楼主) 2020-12-13 06:17 @if (Request.IsAuthenticated && User.IsInRole("Administrators")) { @Html.ActionLink("Home", "Index", "Home") @Html.ActionLink("About", "About", "Home") @Html.ActionLink("Contact", "Contact", "Home") Hello, @User.Identity.Name ! } 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
@if (Request.IsAuthenticated && User.IsInRole("Administrators")) { @Html.ActionLink("Home", "Index", "Home") @Html.ActionLink("About", "About", "Home") @Html.ActionLink("Contact", "Contact", "Home") Hello, @User.Identity.Name ! }