How to determine if URL is relative or literal?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any Framework classes that allow you to provide a URL as a string,
and determine whether it is a relative URL or literal URL?

Once that's determined, I'd then like to remove the protocol and domain
sections.

Ie:

Take http://www.mydomain.co.uk/admin/admin.aspx

and return

/admin/admin.aspx

Kind regards

Ben
 
Back
Top