protected override void Render(HtmlTextWriter writer)
{
string strNavigation = string.Empty;

using (SPSite spSite = new SPSite(SPContext.Current.Site.Url))
{
SPWeb spWeb
= spSite.OpenWeb();
foreach (SPNavigationNode spNavNode in spWeb.Navigation.TopNavigationBar)
{
//子站点的url
string strurl = spNavNode.Url;
//子站点的name
string strname = spNavNode.Title;
}
}
}

 

相关文章:

  • 2021-09-16
  • 2021-12-24
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2022-01-22
  • 2021-12-25
  • 2022-01-08
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2021-04-26
  • 2021-05-16
相关资源
相似解决方案