<%@ page language="C#" autoeventwireup="true" inherits="ims.userbind, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="userbind">
<head runat="server">
    <title>账户绑定</title><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width,initial-scale=1">
    <style type="text/css">
        body{margin:2em 1em 0 !important;font-size:16px}
        .row{border-bottom:1px #ddd solid;margin-bottom:12px;white-space:nowrap;line-height:1.7}
        .row span{margin-right:6px;color:#707070}
        .row input{width:calc(100% - 6.2em)}
        #btnBind{width:100%;box-sizing:border-box;margin:2em 0 0;font-size:16px}
    </style>
    <script src="js/comm.js"></script>
    <script>
        function preBind() {
            if (!$("#tbName").val()) return showAndExit("请输入用户名！");
            if (!$("#tbPwd").val()) return showAndExit("请输入密码！");
            __doPostBack('btnBind', '');
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="s1" runat="server" OnAsyncPostBackError="AsyncError">
        <CompositeScript Path="js/msajax.js" ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
        <div class="row"><span class="f-user">用户：</span><input type="text" autocomplete="off" class="nobgborder" runat="server" id="tbName" /></div>
        <div class="row"><span class="f-lock">密码：</span><input type="password" autocomplete="off" class="nobgborder" runat="server" id="tbPwd" /></div>
        <div class="infoico gray smaller" runat="server" id="pmt">新用户输入用户名和密码，将自动注册并绑定。</div>
        <input type="button" runat="server" id="btnBind" onserverclick="Bind" onclick="return preBind();" value="绑 定" class="btn sec big" />
    </form>
</body>
</html>