Click here to Skip to main content
15,867,963 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Turning local paths from an HTML code in external accessible paths

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
19 Feb 2011CPOL 4.3K   2  
Condensed single line version using one of the overloaded methods of Uri;String fullurl = new Uri(new Uri("http://website.com"), "/path/download.php").ToString();
Condensed single line version using one of the overloaded methods of Uri;

C#
String fullurl = new Uri(new Uri("http://website.com"), "/path/download.php").ToString();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Scotland Scotland
I have been working in the Oil & Gas Industry for over 30 years now.

Core Discipline is Instrumentation and Control Systems.

Completed Bsc Honours Degree (B29 in Computing) with the Open University in 2012.

Currently, Offshore Installation Manager in the Al Shaheen oil field, which is located off the coast of Qatar. Prior to this, 25 years of North Sea Oil & Gas experience.

Comments and Discussions

 
-- There are no messages in this forum --