开发者

How to make SharePoint PeopleEditor WebControl Serializable? C#, SharePoint

开发者 https://www.devze.com 2023-03-28 21:35 出处:网络
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 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 hav开发者_运维知识库e 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消