Search This Blog

Monday 9 September 2013

String was not recognized as a valid Boolean - People Editor


IF are using a people editor control on your custom web part and is pre loaded with a value, there is a chance that the page throws an "String was not recognized as a valid Boolean" error on page postbacks.

The workaround for this is

if (IsPostBack)
    {
        yourPeopleEditor.Validate();
    }

No comments:

Post a Comment