在不要驗證的按鈕上加CausesValidation="False就可以了.

如下:

<asp:Button Text="取消輸入" Runat="Server" CausesValidation="False" OnClick="reset_order" style="font-size:12"/> 

創作者介紹
創作者 傑佛瑞的小格子 的頭像
傑佛瑞

傑佛瑞的小格子

傑佛瑞 發表在 痞客邦 留言(0) 人氣( 491 )