473,397 Members | 1,949 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,397 software developers and data experts.

Save two files on the client

Hi all,

I have to solve the following scenario. On my webpage, the user is able to view some text content. I have to put a "Save Document" button on that page. If the user wants to save that document, she clicks "Save Document" and then I have to pop up the Save As Dialog. When the user selects a folder, where she wants to save that file, I need to save that file on the client.

The first question is how can I do that in ASP.Net 2.0?

Now the problem is getting bigger. Every Document has some metadata. When the user has selected a file, that file has to be saved on the selected location. Besides, a file which is including the metadata (in XML Format) has also to be saved in the selected folder.

So my second questing is how can I save two files with one save dialog.

Note: I cannot join the files into one (e.g. Zipping the files) because on the client a 3rd party application is looking for the file and its metadata seperately.

Thanks for help,
Bye...
Aug 7 '07 #1
2 823
ammoos
100 100+
One solution for your problem is that

1)put the files you want to allow download in to a folder
2)add a hyperlink in to your page instead of button .
3)add the navigate url property for that hyperlink with the path of that folder,not the files.
4)then run the application and click on the link…then the save as dialogue box will display. And you can save it…
5)its works well in asp.net 2005…
when you run the application locally… its may not be work… but after you host/diploy the application it will work well…
Aug 7 '07 #2
One solution for your problem is that

1)put the files you want to allow download in to a folder
2)add a hyperlink in to your page instead of button .
3)add the navigate url property for that hyperlink with the path of that folder,not the files.
4)then run the application and click on the link…then the save as dialogue box will display. And you can save it…
5)its works well in asp.net 2005…
when you run the application locally… its may not be work… but after you host/diploy the application it will work well…
Hi again,

I have tried out your solution, but it doesn't seem to work. I am recieving a HTTP 403 Error. I also tried to access the web application from another computer in the same network. It also failed.

Why it may not work when accessing the page localy?
Have I configure a setting to allow the server to send multiple files?
Aug 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: 00steve | last post by:
Hi, I was wondering if anyone knew how to go about having a "save as HTML" option incorporated within a page. (I know the option is available from the file menu from within IE, but a client has...
4
by: Mr Gordonz | last post by:
Hi All, I want to be able to save a file from the client's PC on the server. The tricky part is the aspx page is never actually seen by the user. Basically, I have a VB application running on...
4
by: Jae | last post by:
I'm writing a web application that exports and imports excel files. The application gets a list of users and their info and displays it in a datagrid .The user then selects to save the file as a...
0
by: Dune | last post by:
Hi there, I have an aspx page that allows users to enter several parameters using drop downs and text boxes. The users then press a button that produces an extract based on the parameters they...
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...
0
by: Bryan Ax | last post by:
Every time I've worked with saving files from the web, I have always used code like the following to force a save dialog where a consumer can choose to open or save the file. string fileName =...
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...
4
by: Matt | last post by:
Hi, I would like to save a file locally (on the client computer) in an ASP.net application. It is like the server would return some data that the user can save to a file on his local PC. The ASP...
1
by: koraykazgan | last post by:
Hi all, I have to solve the following scenario. On my webpage, the user is able to view some text content. I have to put a "Save Document" button on that page. If the user wants to save that...
3
by: evenlater | last post by:
I have an Access application on a terminal server. Sometimes my users need to export reports to pdf, rtf or xls files and save them to their own client device hard drives. They can do that right...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.