Path.Combine equivalent for URLs?

  • Thread starter Brian Vallelunga
  • Start date
B

Brian Vallelunga

Is there a way to easily combine two parts of a url? Something like
Path.Combine for system files would be perfect.

So if I have:

string s1 = "http://mydomain.com/"
string s2 = "/hello/image.jpg"

I would want the combination to not have the double '//' in the middle
that a normal concatenation would give.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top