Open or Save a file from .net 2005 treeview control

  • Thread starter Thread starter shil
  • Start date Start date
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.
 
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
 
Back
Top