简体   繁体   English

如何在SharePoint中获取当前URL?

[英]how to get current URL in SharePoint?

I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. 我正在将SharePiont Server 2007企业版与Windows Server 2008企业版一起使用,并且正在使用发布门户网站模板。 I am developing using VSTS 2008 + C# + .Net 3.5. 我正在使用VSTS 2008 + C#+ .Net 3.5开发。 I am using left navigation area (in SharePoint terms, it is also called current navigation area), and each item in the left navigation area maps to either a sub-site or a specific URL (ie clicks the item in left navigation area will display content of welcome page of the specific sub-site or the content of the specific URL in the main content area on the central area). 我正在使用左侧导航区域(在SharePoint术语中,也称为当前导航区域),并且左侧导航区域中的每个项目都映射到子站点或特定的URL(即,单击左侧导航区域中的项目将显示特定子站点的欢迎页面的内容或中心区域主要内容区域中特定URL的内容)。

I want to know which URL is displayed on the main content area when an item in the left navigation area is clicked. 我想知道在单击左侧导航区域中的项目时在主要内容区域上显示哪个URL。 Any samples to make a reference? 有样品可以参考吗?

您的应用程序中正在使用SharePoint对象模型吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM