Posts tagged ‘disable validator’

Disable All validator on page from server side in asp.net

For VB.NET
For Each vValidator As BaseValidator In Page.Validators
vValidator.Enabled = False
Next
For C#
foreach (BaseValidator vValidator in Page.Validators)
{
vValidator.Enabled = false;
}