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);
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);
Leave a comment