【问题标题】:Sharepoint 2007 - read custom page field from webpartSharepoint 2007 - 从 webpart 读取自定义页面字段
【发布时间】:2010-10-07 19:15:04
【问题描述】:

如何以编程方式从 Web 部件中(从 Web 部件所在的页面)读取自定义页面字段?

谢谢

乔恩

【问题讨论】:

    标签: sharepoint-2007 web-parts field


    【解决方案1】:

    与非自定义字段类型相同:

    CustomFieldType customField = (CustomFieldType)page.ListItem["FieldName"];
    

    只有您转换为您的自定义字段类型。

    【讨论】:

      猜你喜欢
      • 2011-06-13
      • 1970-01-01
      • 1970-01-01
      • 2011-07-14
      • 2010-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-11
      相关资源
      最近更新 更多