disable RequiredFieldvalidator
问题 I have RequiredFieldvalidator and I want in certain cases to disable it. this is the RequiredFieldvalidator: <asp:RequiredFieldValidator ID="RfvHul" runat="server" ErrorMessage="Error" ControlToValidate="txtBox" Display="None"></asp:RequiredFieldValidator> and I've tried to do this but all these lines of code gave me Page_IsValid = false $("#RfvHul").attr("disabled", true); ValidatorEnable(document.getElementById("<%=RfvHul.ClientID%>"), false); document.getElementById("RfvHul").Enabled =