如何使 SharePoint PeopleEditor WebControl 可序列化? C#、SharePoint
我基本上想扩展 PeopleEditor
使其 Serialized
以便存储在 ViewState
中,因为它是动态创建的,并且我在 期间需要它>回发
。
我有这个:
[Serializable]
public class PeopleEditor : Microsoft.SharePoint.WebControls.PeopleEditor, ISerializable
{
}
但不知道从那里去哪里。有人有意见吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
而不是这样做。我建议仅存储动态创建的人员编辑器控件的计数和值,并在回发时创建人员编辑器控件的计数并恢复这些值。
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.