Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint。如何访问RenderingTemplate中的对象_Sharepoint_Get - Fatal编程技术网

Sharepoint。如何访问RenderingTemplate中的对象

Sharepoint。如何访问RenderingTemplate中的对象,sharepoint,get,Sharepoint,Get,我正在处理渲染模板(Sharepoint 2010),用我自己的模板覆盖了standart新建/编辑/显示表单,但我无法从RenderingTemplate类中获取代码中的对象。 例如: <SharePoint:RenderingTemplate ID="ParentItemsListView" runat="server"> <Template> <table cellpadding=0 cellspacing=0> <tr&g

我正在处理渲染模板(Sharepoint 2010),用我自己的模板覆盖了standart新建/编辑/显示表单,但我无法从RenderingTemplate类中获取代码中的对象。 例如:

<SharePoint:RenderingTemplate ID="ParentItemsListView" runat="server">
<Template>
    <table cellpadding=0 cellspacing=0>
        <tr><td nowrap class="class1"><asp:Label ID="label1" runat="server" /></td></tr>
        <tr><td><SharePoint:FieldLabel runat="server" ID="TitleDescriptionField"  ControlMode="Edit" FieldName="Title" /></td></tr>
    </table>
</Template>

我需要自定义FieldLabel对象


我希望有人能帮助我。谢谢。

您应该可以这样得到它:

FieldLabel fieldLabelControl= ParentItemsListView.FindControl("TitleDescriptionField") as FieldLabel;
if(fieldLabelControl != null)
{
  //Do something with it
}