Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 27th, 2003, 06:43 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default FileManager - download function

Hi,
the download function does not work correctly. When user try to download a file, the default name is "download.aspx". The user have to rename the file name manually, very inefficient. Can we fix this so the name of the file will appear in the "save as" dialog instead of the annoying "download.aspx".

Thanks,
Lam

  #2 (permalink)  
Old October 28th, 2003, 07:26 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do my own research and found out the you need to add this code:
Response.Buffer = True

Have fun!

  #3 (permalink)  
Old November 4th, 2003, 10:57 AM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to change the the line in the download.aspx file from:
 Response.AddHeader("Content-Disposition", "attachment filename=" _
        & theFile.Name)
to this:
 Response.AppendHeader("Content-Disposition", "attachment; filename=""" & theFile.Name & """")
The file name was not getting read correctly.




Similar Threads
Thread Thread Starter Forum Replies Last Post
FileManager - Permission Denied fieroguy BOOK: ASP.NET Website Programming Problem-Design-Solution 3 July 22nd, 2004 08:52 PM
FileManager CreateDir FrancesValdes BOOK: ASP.NET Website Programming Problem-Design-Solution 2 May 18th, 2004 12:31 PM
FileManager--cannot upload or edit uvasid BOOK: ASP.NET Website Programming Problem-Design-Solution 4 February 17th, 2004 05:16 PM
Secure FileManager yingmingming BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 16th, 2004 11:19 AM
FileManager Application bpgadhia BOOK: ASP.NET Website Programming Problem-Design-Solution 3 February 3rd, 2004 04:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.