跳过页面验证,直接执行按钮事件
将Button控件的CausesValidation属性设置为False即可.
<asp:Button id="Button2" runat="server" Width="70px" Text="检测用户名" CausesValidation=False></asp:Button>
<asp:Button id="Button2" runat="server" Width="70px" Text="检测用户名" CausesValidation=False></asp:Button>