Wednesday, 14 August 2013

Get a specific part of a URL in C#

Get a specific part of a URL in C#

I have a Url in a string variable.
Example format of the Urls I have are:
http://something.com/sites/collection
http://something:33/sites/collection, something:44/sites/collection
Now I want to extract "/sites/collection" part from that url.

No comments:

Post a Comment