473,385 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

save file

can i open the save file dialog box from a asp.net web page?

thx
Nov 19 '05 #1
6 2471
No.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
can i open the save file dialog box from a asp.net web page?

thx

Nov 19 '05 #2
then how can i save a file to the clients PC from the web page?

without having them do a right click and Save Pic As?

"Peter Rilling" wrote:
No.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
can i open the save file dialog box from a asp.net web page?

thx


Nov 19 '05 #3
Write an ActiveX control in unmanaged code, otherwise the user has to
initiate the saving. Just give the user instructions on the page indicating
that they have to take some action to download the content.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
then how can i save a file to the clients PC from the web page?

without having them do a right click and Save Pic As?

"Peter Rilling" wrote:
No.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
can i open the save file dialog box from a asp.net web page?

thx


Nov 19 '05 #4
You can zip the file, and redirect the user to it.
Then the dialog will appear automatically.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
can i open the save file dialog box from a asp.net web page?

thx

Nov 19 '05 #5
Assuming you're talking specifically about images, these are the easy
options;

1. Explain to the user how to right click and save as
2. If your users are all IE 6 users, and your images are large enough,
explain that they should use the image toolbar that appears in the
upper-left corner of the image
3. Zip your images so that the browser treats the files as an unrecognized
type. It will prompt the user to Open or Save. Explain to the user they
need to save, and this will invoke a file-save dialog. Naturally, your
users will have to unzip them later.
4. For the thumbnails, use GIF/JPEG, for the download versions, use a
non-web image type, like TIFF. This has the same behavior as the Zip
approach, but may be easier for them to open once it has been saved.

There may also be a javascript approach to invoking a save dialog; you might
try posting to a javascript newsgroup.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:C4**********************************@microsof t.com...
then how can i save a file to the clients PC from the web page?

without having them do a right click and Save Pic As?

"Peter Rilling" wrote:
No.

"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
can i open the save file dialog box from a asp.net web page?

thx


Nov 19 '05 #6
Mike wrote:
can i open the save file dialog box from a asp.net web page?

thx


In your aspx file (that gives the contents to be stored), add
Response.AppendHeader("Content-disposition", "attachment");

you can also use
Response.AppendHeader("Content-disposition", "attachment; filename=thefile.ext");
to *suggest* a filename (*not* directory!) to store the file under.

Hans Kesting
Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: a | last post by:
Save text file as html kloepper 17:42 23 Jul '04 I'm using httpwebresponse and a StringBuilder to return a stream that originates as a file with the .txt suffix (My download code converts the html...
5
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
4
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. ...
4
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the...
5
by: Patrick | last post by:
Following on from the excellent example at http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExcel.asp on how to save a data-grid to excel file, how can I extend the example such...
10
by: GJP | last post by:
Hello. Ive been asked to make my own notepade for college assignment. All ig going well, but i cant get the save to work. I can get Save a (shows dialog box), i can get it to just save too,...
10
by: Henok Girma | last post by:
Hello Gurus, I want to save the state of an unbound DataGridView on my Windows Form application to an XML file so i can later load it back.. Basically, on my form I have a DataGridView, it's got...
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
3
by: fiefie.niles | last post by:
I would like to save a web page to a file and have the hyperlinks work when I bring the file back up. If the web page has a hyperlink like the following <a href="OurWeb/News/abcFile.htm">, after...
3
by: =?Utf-8?B?YXNkZg==?= | last post by:
Hello. I am making a web application with c# and am using this code: Response.ContentType = "application/x-excel"; Response.AddHeader("Content-Disposition", "attachment;filename=" +...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.