FileUpload control (UploadButton.PostedFile.FileName)
<p>Recently i developed a code on asp that requires to upload a file up to a server. 
As i found out from the web, in order to view the local file of a file it can be done by doing UploadButton.PostedFile.Filename. </p>

<pre><code>string fileName = UploadButton.PostedFile.Filename;
</code></pre>

<p>This will show the whole local path(eg. C:\Documents and Settings\christopher.lim\Desktop\HelloWorld.txt). </p>

<p>This work fine if it is run the code on my desktop (where my PC is the server itself) but when i shifted the code over to a test server and tried it on my desktop(PC is the client), it only display my file name instead of the whole path. </p>

<p>Example:</p>

<pre><code>string fileName = UploadButton.PostedFile.Filename;

Response.Write("FileName: " + fileName);
</code></pre>

<p>1) Local PC -> C:\Documents and Settings\christopher.lim\Desktop\HelloWorld.txt</p>

<p>2) Test Server -> HelloWorld.txt</p>

<p>P/S: Sorry if it's confusing because i am new to server client. Correct me if i'm wrong.</p>
