0

Currently I have a WebPart that contains asp.net validations, but the problem is when I try save the page not is posbile why the page have validations pending correction.

Anyone know how I can fix this?

0

this is Answer

if (WebPartManager.DisplayMode != WebPartManager.BrowseDisplayMode)
{
    foreach (var validator in Controls)
    {
        if (validator is BaseValidator)
        {
            ((BaseValidator)validator).Enabled = false;
        }
    }
}

https://sharepoint.stackexchange.com/a/58663/22045

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.