3

I am writing a search engine (why not hey?) and need to handle navigating relative urls such as "../about.aspx", "/about.aspx" "about.aspx" etc

Is there anything out there or in the .Net Library's which can convert these to absolute addresses?

Daniel
  • 10,864
  • 22
  • 84
  • 115
Andrew Harry
  • 13,773
  • 18
  • 67
  • 102

2 Answers2

1

Take a look at the System.Uri class, the System.UriBuilder class, and the System.HttpStyleUriParser class

bendewey
  • 39,709
  • 13
  • 100
  • 125
  • found duplicate question with a good answer http://stackoverflow.com/questions/128990/absolute-url-from-base-relative-url-in-c – Andrew Harry May 16 '09 at 04:23
0

Yes, you can use the system.uri.

CoffeeRain
  • 4,460
  • 4
  • 31
  • 50