The other reason to use Path in this case is that it allows your code to
become platform agnostic - if you were ever running the code on a BSD box
somewhere, the Path function will know how to parse out the filename without
you having to alter your code at all.
There are so many of these types of functions buried within the .NET
framework it's frightening!
"Philip Steel" <PhilipS@t...> wrote in message
news:175176@a..._professional...
>
> Ok,
>
> except UploadFileField.PostedFile.FileName doesn't return a url to the
file,
> eg, http://localhost/test.gif ,
>
> it returns a physical path, eg "C:\Inetpub\wwwroot\test.gif".
>
> Phil
>