Use the SPSite.MakeFullUrl() function:
public string MakeFullUrl( string strUrl)
string imageUrl = site.MakeFullUrl("/_layouts/images/siteIcon.png");
No comments:
Post a Comment