Possible to do a File SaveAs Dialog In ASP.NET

R

Raterus

Why don't you explain what you want a little bit more, I could interpret this many ways.
 
J

Jeffrey A. Voigt

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
 
J

Jeffrey A. Voigt

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.
 
B

bloomfield

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
 
J

Jeffrey A. Voigt

Yeah, I figured that was the way to go... Got it working with that already..

Thanks!
- J
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top