Possible to do a File SaveAs Dialog In ASP.NET

  • Thread starter Thread starter Jeffrey A. Voigt
  • Start date Start date
Why don't you explain what you want a little bit more, I could interpret this many ways.
 
Hi Ken,

What we are trying to do is create a type of file check-in/out system where
the user can checkout a file from a location. When they checkout the file
we have to ask them where they want to put it... So we need a type of dialog
box that asks them to select a directory on their location machine....

Since we are doing this in ASP.NET, what type of controls are available for
this?

Thanks,
- Jeff
 
Basically, we need a control to display to the user a listing of directories
on their machine so they can select one. The result will be sent to the
server in the form.

Very similar to the HTML input type="file" control, only we need to be able
to use it to select directories instead of files.

Thanks,
- J

Why don't you explain what you want a little bit more, I could interpret
this many ways.
 
The solution is to make the user "download" the file. This way the
browser will ask the user where to put the file somewhere on his disk -
save as dialog. The simplest yay to do this is to provide a link to file
when the user does a check-out. When the user click the link the browser
will download the file. The problem with this approach is that if the
browser "knows" the file type - like for pdf for example - it will
directly open the file in the window instead of showing a save as
dialog. This can be avoided by writing the file binary in the response
and to set some custom http headers. See the following link for more
information:
http://support.microsoft.com/defaul...port/kb/articles/Q260/5/19.ASP&NoWebContent=1

Hope this helps
Hi Ken,

What we are trying to do is create a type of file check-in/out system where
the user can checkout a file from a location. When they checkout the file
we have to ask them where they want to put it... So we need a type of dialog
box that asks them to select a directory on their location machine....

Since we are doing this in ASP.NET, what type of controls are available for
this?

____________________
www.bloomfield.as.ro
 
Yeah, I figured that was the way to go... Got it working with that already..

Thanks!
- J
 
Back
Top