Yes, this is likely the Windows Forms dialog.
You have nothing out of the box for this as accessing client side files from
a server would be a security issue so HTML has only something that allows
the *user* to select a file (i.e. setting the file path programmatically
wont work). You can do so but you have then to install something client side
the user will have to accept...
Also as you have seen Server.MapPath is to map the location of a file on
your web site to a physical location on your server i.e. this is used when
files are handled server side not client side...
Here you don"t have anything to use . You just provide the approrpiate link
and the browser will open the file...
--
Patrice
"Paul" <Pa**@discussions.microsoft.coma écrit dans le message de groupe de
discussion :
B4**********************************@microsoft.com...
I located the open file dialog in the toolbox but it is not enabled.
Wondering if this control only works for windows apps!--
Paul G
Software engineer.
"Paul" wrote:
>Hi I am able to upload files to a server with a .net web application.
The
problem is I am providing a hyperlink so the user can open the file after
it
is placed on the server. For the URL I am using the absolute path to the
file and setting this dynamically after the file is uploaded. For the
hyperlink I have the target set to _blank. When clicking on the
hyperlink
nothing happens, wondering if I need to use a file open control and if
there
is one with .net 2005?
thanks!
--
Paul G
Software engineer.