?
This document uses PHP Chinese website manual Release
CausesValidation 屬性規(guī)定當(dāng) Button 控件被點擊時是否驗證頁面。
當(dāng)按鈕被點擊時,默認(rèn)執(zhí)行頁面驗證。
該屬性常用于當(dāng)取消按鈕或重置按鈕被點擊時阻止進(jìn)行驗證。
<asp:Button?CausesValidation="TRUE|FALSE"?runat="server"?/>
下面的實例會在按鈕被點擊時不執(zhí)行驗證:
<form runat="server">
<asp:Button id="button1" runat="server"
CausesValidation="FALSE" Text="Cancel" />
</form>