MvcApplication2/Views/Authentication/Login.cshtml

(完整代码) 1KB

@{
    Layout = null;
}
@using MvcApplication2.Models
@model UserDetails
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    <script src="~/Scripts/jquery-1.8.2.js"></script>
    <script src="~/Scripts/jquery.validate.js"></script>
   <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
    <link rel="stylesheet" href="~/Content/bootstrap.min.css" />
   <link rel="stylesheet" href="~/Content/center.css" />
</head>
<body >
    <div class="index-main" >
    <div  class="index-main-body">
        @using (Html.BeginForm("DoLogin", "Authentication", FormMethod.Post))
        {
            <div class="form-group" >
            @Html.LabelFor(x => x.UserName, "用户名", new { @class = "control-label"})
            @Html.TextBoxFor(c => c.UserName, new { @class = "form-control",@placeholder="用户名" })  @Html.ValidationMessageFor(x => x.UserName)
                </div>
          <div class="form-group" >
                @Html.LabelFor(x => x.PassWord, "密码",new { @class = "control-label" })
            @Html.PasswordFor(c => c.PassWord, new { @class = "form-control",@placeholder="密码" })
            </div>
            <input type="submit" value="登陆"  class="btn btn-default" name="BtnSubmit" />
            @Html.ValidationMessage("CredentialError")
        }
        </div>
  </div>
</body>
</html>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。