将值保存到WEBPART的属性中(SharePoint 2003会将设置的值保存到数据库中)

// 一个自定义属性
this.tvalue = "现在需要什么?";
SPWeb web = SPControl.GetContextWeb(this.Context);
SPWebPartCollection webparts = web.GetWebPartCollection(
this.Context.Request.Url.ToString(), Storage.Shared);
this.SaveProperties = true;
webparts.SaveChanges(this.StorageKey);

但是有个问题,这段代码在模拟身份的情况下,多数没能成功保存。
详细原因是:http://support.microsoft.com/?kbid=892866

 
     

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2021-11-10
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-29
  • 2021-12-28
  • 2021-10-16
  • 2021-12-25
  • 2021-06-09
相关资源
相似解决方案