v10.10.2024.0701 使用IJsonHost改进Json序列化
大石头 编写于 2024-07-01 08:36:34 大石头 提交于 2024-07-01 08:48:33
X
@using XCode.Membership;
@if (ManageProvider.User != null)
{
    <text>
        你好,@Html.ActionLink(ManageProvider.User + "", "Info", "Admin/User", routeValues: new { id = ManageProvider.User.ID }, htmlAttributes: new { @class = "username", title = "管理" })!
        @Html.ActionLink("注销", "Logout", "Admin/User")
    </text>
}
else
{
    <ul>
        <li>@Html.ActionLink("注册", "Login", "Admin/User", routeValues: new { ReturnUrl = Request.Url, act = "Register" }, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("登录", "Login", "Admin/User", routeValues: new { ReturnUrl = Request.Url }, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}