Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 May 4th, 2007, 04:32 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default upload problem

Hi to all

my problem is that i am uploading .pdf files from web form and storing name of file in database and file itself in c:\uploads\reports
in view page of reports i added a link to download reports and saving path in a variable and after that using following line in code to download.

Response.AddHeader("Content-Disposition", "attachment; path=" + strFilePath + "")

BUT

when i click it show me dialog box without appropriate name as well as save my file in html format, even i put hard coded name of file ,it shows exact file name but size of file downloaded is less and even do not open the file and show error message that donot download properly

 regards,

Munish


thanks......
__________________
thanks......


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload File problem khb3283 ASP.NET 2.0 Basics 1 October 3rd, 2008 01:14 PM
File upload problem! Ashleek007 Beginning PHP 0 July 15th, 2005 11:08 AM
upload problem Regornil Pro JSP 5 March 9th, 2005 03:12 AM
UpLoad Problem vieritlc Classic ASP Databases 3 May 23rd, 2004 03:42 PM
upload problem.... pls help life_s Ng ASP.NET 1.0 and 1.1 Basics 7 September 16th, 2003 11:20 PM





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