Books.web/Views/User/Register.cshtml

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@model Books.web.Models.User

@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Register</h2>
<script type="text/javascript">
    function getvie()
    {
        var em = $('#email').val();
        $.ajax({
            type: 'post',
            url: '/User/Vie',
            data: {qq:em},
            dataType: 'typetext',
            success: function () {
                   
            }
        })
    }
</script>

@using (Html.BeginForm("Register","User","post")) 
{
    @Html.AntiForgeryToken()
    
<div class="form-horizontal">
    <h4>User</h4>
    <hr />
    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
    <div class="form-group">
       <div class="col-md-7">
            @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control",@id="email",@placeholder="暂仅支持qq邮箱,请保持正确输入"} })
            @Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
        </div>
    </div>

    <div class="form-group">
       
        <div class="col-md-7">
            @Html.EditorFor(model => model.Pass1, new { htmlAttributes = new { @class = "form-control",@placeholder="密码" } })
            @Html.ValidationMessageFor(model => model.Pass1, "", new { @class = "text-danger" })
        </div>
    </div>

    <div class="form-group">
       
        <div class="col-md-7">
            @Html.EditorFor(model => model.Pass2, new { htmlAttributes = new { @class = "form-control",@placeholder="确认密码" } })
            @Html.ValidationMessageFor(model => model.Pass2, "", new { @class = "text-danger" })
        </div>
    </div>
    <div class="form-group">
        
        <div class="col-md-7">
            <a href="/User/Vie"></a>
            <input type="button" onclick="getvie()" name="value" value="获取验证码" />
            <input type="text" name="validation" value=""  placeholder="验证码" />
后面还有 15 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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