Copy/paste internet code kills. Runtime comments on .net development, SharePoint WCM, and software engineering
Need to get the path component of a URI without the domain, port, or query string? Use Request.Url.AbsolutePath. Despite its name it returns a relative URL:
So http://blog.mediawhole.com/somepage.aspx?a=b becomes /somepage.aspx.
Spam comments will be deleted
Note: only a member of this blog may post a comment.
No comments:
Post a Comment
Spam comments will be deleted
Note: only a member of this blog may post a comment.