문제

I would like to basically extend PeopleEditor to make it Serializable in order to store in ViewState because it is created dynamically and I need it during PostBack.

I have this:

[Serializable]
public class PeopleEditor : Microsoft.SharePoint.WebControls.PeopleEditor, ISerializable
{
}

But am not sure where to go from there. Does anyone have some input?

도움이 되었습니까?

해결책

Instead of doing this way. I would recommend to store only the count and values of people editor control which are created dynamically and upon postback create the count number of people editor control and restore the values.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top