How to combine URLs in SharePoint

Ashok Raja
 
Solutions Architect
December 7, 2012
 
Rate this article
 
Views
961

Use the following code snippet to combine URLs in SharePoint

using Microsoft.SharePoint.Utilities;
.
.
.
string PageUrl= "pages/Home.aspx";
string FullUrl = SPUrlUtility.CombineUrl(SPContext.Current.Web.Url, PageUrl);
Category : Tips

Author Info

Ashok Raja
 
Solutions Architect
 
Rate this article
 
I am Ashok Raja, Share Point Consultant and Architect based out of Chennai, India. ...read more
 

Leave a comment