MyBookShop/BookShop/Store/register.aspx

(开头部分) 4KB

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

<%@ Page Title="" Language="C#" MasterPageFile="~/Store/StoreDefault.Master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="BookShopProject.Store.register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <%-- 时间插件 --%>
    <script src="../Plugn/My97DatePickerBeta/My97DatePicker/calendar.js"></script>
    <script src="../Plugn/My97DatePickerBeta/My97DatePicker/WdatePicker.js"></script>

      <%-- 验证插件JS --%>
    <script src="../Plugn/formvalidator/formValidatorRegex.js"></script>
    <script src="../Plugn/formvalidator/formValidator-4.1.3.js"></script>
     <script type="text/javascript">

        $(document).ready(function () {
            $.formValidator.initConfig({
                 formID: "form1", onError: function () {
                    alert("验证失败,请查证后再试!");
                    return false;
                }
            });
            $("#ContentPlaceHolder1_txtpwd").formValidator({ onShow: "请输入密码", onfocus: "由数字、26个英文字母或者下划线组成", onCorrect: "验证通过" }).regexValidator({ regExp: "userpwd", dataType: "enum", onError: "6-13位(英文数字)" });

            $("#ContentPlaceHolder1_txtTrueName").formValidator({ onShow: "请输入姓名", onfocus: "由汉字组成", onCorrect: "验证通过" }).regexValidator({ regExp: "chinese", dataType: "enum", onError: "姓名必须是汉字" });

            $("#ContentPlaceHolder1_txtPhone").formValidator({ onShow: "请输入手机号码", onfocus: "由11位数字组成", onCorrect: "验证通过" }).regexValidator({ regExp: "mobile", dataType: "enum", onError: "请输入正确手机号" });

            $("#ContentPlaceHolder1_txtEmail").formValidator({ onShow: "请输入邮箱", onfocus: "", onCorrect: "验证通过" }).regexValidator({ regExp: "email", dataType: "enum", onError: "请输入正确邮箱" });
        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="left_content">
      <div class="title"><span class="title_icon"><img src="images/bullet1.gif" alt="" title="" /></span>新用户注册</div>
      <div class="feat_prod_box_details">
        
          <div class="contact_form" runat="server" id="ShowUserEdit">
          <div class="form_subtitle">请填写注册信息</div>
            <div class="form_row">
              <label class="contact"><strong>用户名:</strong></label>
                <asp:TextBox runat="server" AutoPostBack="true" OnTextChanged="txtUserName_TextChanged" ID="txtUserName" CssClass="contact_input"></asp:TextBox>
                <asp:Label runat="server" ID="lblLikeName" Visible="false"><font color="red" size="-1">*该用户名已存在</font></asp:Label>
                <asp:Label runat="server" ID="lblNoUserName" Visible="false"><font color="red" size="-1">*用户名不能为空</font></asp:Label>
            </div>
            <div class="form_row">
              <label class="contact"><strong>姓名:</strong></label>
                <input type="text" class="contact_input" runat="server" id="txtTrueName" />
                <i id="ContentPlaceHolder1_txtTrueNameTip"></i>
            </div>
              <div class="form_row">
              <label class="contact"><strong>密码:</strong></label>
                <asp:TextBox runat="server"  TextMode="Password" ID="txtpwd" CssClass="contact_input"></asp:TextBox>
                  <i id="ContentPlaceHolder1_txtpwdTip"></i>
            </div>
            <div class="form_row">
              <label class="contact"><strong>电话:</strong></label>
                <input type="text" class="contact_input" runat="server" id="txtPhone" />
                <i id="ContentPlaceHolder1_txtPhoneTip"></i>
            </div>
              <div class="form_row">
              <label class="contact"><strong>出生日期:</strong></label>
                <input type="text" class="contact_input" onfocus="WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d'})" runat="server" id="txtBirthday" />
            </div>
后面还有 18 行代码,购买后查看完整代码

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

AI 解读 AI

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

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