SPUrlUtility.CombinePath
Here is another “watch out” for using the SharePoint object model.
SPUrlUtility.CombineUrl(web.Url, string.Empty)
The line above will throw an exception, as CombinUrl doesn’t like empty strings. 🙂
Here is another “watch out” for using the SharePoint object model.
SPUrlUtility.CombineUrl(web.Url, string.Empty)
The line above will throw an exception, as CombinUrl doesn’t like empty strings. 🙂