Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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.


 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.