Save two files on the client

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • koraykazgan
    New Member
    • Aug 2007
    • 10

    #1

    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...
  • ammoos
    New Member
    • Apr 2007
    • 100

    #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…

    Comment

    • koraykazgan
      New Member
      • Aug 2007
      • 10

      #3
      Originally posted by ammoos
      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?

      Comment

      Working...