SharePoint 2010 获取所有子站点
<div id="Div1" class="ms-quicklaunchouter" runat="server"> <div class="ms-treeviewouter"> <SharePoint:SPRememberScroll runat="server" id="RememberScroll1" onscroll="javascript:_spRecordScrollPositions(this);" style="width: 220px;"> <Sharepoint:SPTreeView runat="server" id="TreeView1" ShowLines="false" DataSourceId="TreeViewDataSource1" ExpandDepth="0" SelectedNodeStyle-CssClass="ms-tvselected" NodeStyle-CssClass="ms-navitem" NodeStyle-HorizontalPadding="2" SkipLinkText="" NodeIndent="8" ExpandImageUrl="/_layouts/images/tvclosed.png" ExpandImageUrlRtl="/_layouts/images/tvclosedrtl.png" CollapseImageUrl="/_layouts/images/tvopen.png" CollapseImageUrlRtl="/_layouts/images/tvopenrtl.png" NoExpandImageUrl="/_layouts/images/tvblank.gif" NodeWrap="True"> </Sharepoint:SPTreeView> </Sharepoint:SPRememberScroll> </div> </div> <SharePoint:SPHierarchyDataSourceControl runat="server" id="TreeViewDataSource1" ShowDocLibChildren="false" ShowListChildren="false" RootContextObject="Web" ShowFolderChildren="false" IncludeDiscussionFolders="false"/>
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步