[英]SharePoint 2007 control/webpart to display field value from another page
在SharePoint 2007中,如何顯示另一個頁面中的字段的值?
類似於以下內容:
<SharePointWebControls:FieldValue id="PageTitle" FieldName="Title" runat="server"/>
但它來自另一個SharePoint頁面。
SharePointWebControls:FieldValue顯示當前SharePoint上下文(當前列表項)中的值。
要顯示另一個頁面的值,我建議使用“內容查詢” Web部件來查詢所需的頁面。
http://msdn.microsoft.com/en-us/library/aa981241.aspx
選擇要顯示的字段,要查找的列表以及要選擇的項目/頁面
<ViewFields>
<FieldRef Name="Title" Nullable="True" Type="Text"/>
</ViewFields>
<Lists>
<List ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"/>
</Lists>
<Webs Recursive="True" />
<RowLimit>1</RowLimit>
<Where>
<Gt>
<FieldRef Name="Created" Nullable="True" Type="DateTime"/>
<Value Type="DateTime"><Today OffsetDays="-7"/></Value>
</Gt>
</Where>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.