title: \ in path.combine in c#
body: <p>I know this is asked many times, but I couldn't exactly find what I need.</p>
  
  <p>I want to get the server path and add image path to that. I did that </p>
  
  <pre><code>string mypath = Request.Url.GetLeftPart(UriPartial.Authority);
  string uploadPath = Path.Combine(mypath, "Upload/Images/");
  Response.Write(uploadPath);
  </code></pre>
  
  <p>This printed <code>http://localhost\Upload/Images/</code>, why is there a <code>\</code> in the middle of the path.</p>
  
  <p>I fixed it by adding <code>/</code> to <code>mypath</code> like this</p>
  
  <pre><code>string mypath = Request.Url.GetLeftPart(UriPartial.Authority) + "/";
  </code></pre>
  
  <p>Is this the correct way? or is there is any better way to do this?</p>