跳过页面验证,直接执行按钮事件

将Button控件的CausesValidation属性设置为False即可.
<asp:Button id="Button2" runat="server" Width="70px" Text="检测用户名" CausesValidation=False></asp:Button>
posted @ 2007-11-01 16:27  Fernando  阅读(368)  评论(0编辑  收藏  举报