【发布时间】:2021-02-27 16:16:14
【问题描述】:
我的项目有一个注册页面,这部分对我不起作用:
<input type="email" id="email" title="invalid email!" runat="server" placeholder="email" />
<input type="text" id="username" runat="server" placeholder="username " />
<input type="password" title="Password needs to contain at least one big letter and digits" pattern="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$" id="password" runat="server" placeholder="password" />
<input type="text" id="phone" title="invalid phone!" pattern="^\s*(?:\+?(\d{1,3}))?([-. (]*(\d{3})[-. )]*)?((\d{3})[-. ]*(\d{2,4})(?:[-.x ]*(\d+))?)\s*$" runat="server" placeholder="phone number" />
<asp:Button runat="server" ID="signUpBotton" OnClick="signUp" Text="sign up"/>
我在后面的代码中有注册部分,但asp:button 甚至没有触发该功能并且它不起作用。
【问题讨论】: