In the code below, how to make the validator not check?

As I have this validator in a TextBox:

<asp:RequiredFieldValidator ID="rfvtxtAdd" ValidationGroup="Update" ErrorMessage="*"
    SetFocusOnError="true" ControlToValidate="txtAdd" runat="server" />

I want to disable validation check in code. How do you do this?

+3
source share
1 answer
rfvtxtAdd.Enabled = false;
+8
source

Source: https://habr.com/ru/post/1776415/


All Articles