How to determine if URL is relative or literal?

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
 
G

Guest

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top