Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4603050
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:05:09+00:00 2026-05-22T00:05:09+00:00

I have a complete URL like: A: http://www.domain.com/aaa/bbb/ccc/ddd/eee.ext . I have a relative URL

  • 0

I have a complete URL like: A: http://www.domain.com/aaa/bbb/ccc/ddd/eee.ext.

I have a relative URL like: B: ../../fff.ext

I’m looking for the easiest way in .NET C# to combine these two URLs and get:
C: http://www.domain.com/aaa/bbb/fff.ext

This is like what browsers does: you’re browsing URL A, then, page’s HTML have an hyperlink as B, the resulting URL is C.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:05:10+00:00Added an answer on May 22, 2026 at 12:05 am

    You’d probably have better luck looking up “PathCanonicalize”.

    Also, with my findings, one of the overloaded Uri constructors can handle this:

    Uri combined = new Uri(
      new Uri("http://www.domain.com/aaa/bbb/ccc/ddd/eee.ext", UriKind.Absolute),
      "../../fff.ext"
    );
    

    Proof is in the pudding

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a URL that is like the following: http://www.example.com/client/project/subdirectory/value/ I would like like
I have a string which is something like this : a_href= www.google.com/test_ref=abc; I need
Ok, say I have a page with the url: URL.com/checkout/completed , how can I
here's the problem: when requesting url like - http://server/path/to/file.html?param=../../something/something i get response: 500 Internal
I have a simple ajax call like this: $.ajax({ url: u, type: POST, dataType:
I have a jquery block that does some ajax stuff like this: $.ajax({ url:
I am using the following sliding div script: http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html Currently, the slidetoggle function is
I'm using Subscribe2 plugin in my new upcoming WordPress blog ( http://www.adlerr.com ). My
i am using this widget to get my users to create accounts: <iframe src=http://www.facebook.com/plugins/registration.php?
The best example I saw so far is the http://www.instapaper.com/ . They can get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.