virtual path change
<p>I want to change Virtual Path(The path is out of project means local system or Server.) of the file Which is save on the folder in asp.net.</p>

<p>Code is</p>

<pre class="lang-default prettyprint-override"><code>DataTable dtFiles =  
    GetFilesInDirectory(HttpContext.Current.Server.MapPath(UPLOADFOLDER));
gv.DataSource = dtFiles;
gv.DataBind();

if (dtFiles != null &amp;&amp; dtFiles.Rows.Count &gt; 0)
{
    double totalSize = Convert.ToDouble(dtFiles.Compute("SUM(Size)", ""));
    if (totalSize &gt; 0) lblTotalSize.Text = CalculateFileSize(totalSize);
}

private static string UPLOADFOLDER = "D:/Uploads";
</code></pre>

<p>And the error show "D:/Uploads is not a valid virtual path.".</p>
