Friday, February 06, 2004

 

URI manipulations

string WebServiceUri = Context.Request.UrlReferrer.GetLeftPart(System.UriPartial.Path);
Uri uri = new Uri(WebServiceUri + "/..");
string ApplicationFolderUri = uri.ToString();


See also:
System.Uri - (Apparently) Poor API decisions..: "uri.Segments"

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?