Saturday, December 28, 2013

Capture the relevant path

Hi,

when running the deployed project in the client machine, I try to catch the full path of the selected file, using these codes


if (FileUploadControl.HasFile)
{
try
{
...
tb_fullname.Text = System.IO.Path.GetFullPath(FileUploadControl.PostedFile.FileName);
...





but I checked that tb_fullname.Text is having the value like

c:\windows\system32\inetsrv\file1.png



not the relevant path in the client machine, in which I'm choosing the file to upload. How to adjust the above?


Many Thanks & Best Regards, Hua Min



No comments:

Post a Comment