Combine overlapping urls in C#
Posted
by Dan Revell
on Stack Overflow
See other posts from Stack Overflow
or by Dan Revell
Published on 2010-03-30T16:49:12Z
Indexed on
2010/03/30
16:53 UTC
Read the original article
Hit count: 248
c#
I've got two Urls. A server and a relative url that I would like to combine. The problem is that part of the url's may well overlap. I've done this using some horrible string manipulation but would like to put this out there and see if there is a nice and clean way of doing it.
string siteUrl = "http://seed-dev6/sites/irs";
string formUrl = "/sites/irs/Forms/testform.xsn";
© Stack Overflow or respective owner