Open or Save a file from .net 2005 treeview control

S

shil

Hi,

I am trying to list some files from server using .net 2005 treeview
control, which I could successfully do it. Also, I would like to open
the Open/Save dialog box when user clicks on a file name from the list.
How can I do that? If I could open the file even with out the dialog
box, that would work. For example, when user clicks on a PDF file, then
it should open in PDF reader.

Any help is appreciated.
Thanks.
 
L

Laurent Bugnion

Hi,
Hi,

I am trying to list some files from server using .net 2005 treeview
control, which I could successfully do it. Also, I would like to open
the Open/Save dialog box when user clicks on a file name from the list.
How can I do that? If I could open the file even with out the dialog
box, that would work. For example, when user clicks on a PDF file, then
it should open in PDF reader.

Any help is appreciated.
Thanks.

The way files are displayed (or not) on the client is set by the
(client-side) user, and only him. You cannot change that from the
server. The only thing you can do is serve correct MIME types, and the
browser will then do what it has been configured for.

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top