get the servername + foldername (without script name)
<p>how to get the servername + foldername without containing the script name?</p>

<pre><code>string filePath = Request.QueryString.Get("filepath");

string serverPath = Request.ServerVariables["SERVER_NAME"] + "/";
string fullUrl = "http://" + serverPath + filePath;
Response.Write(fullUrl);
</code></pre>

<p>the above code is missing folder name. </p>
