Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 Basics 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
 
Old November 23rd, 2007, 03:42 PM
Authorized User
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Download Question "Response.AppendHeader"

Hi Folks,
I'm working on downloading files and am having success with either the following two lines of code.

I'm using VB.Net and .Net Framework 2.0

Response.AppendHeader("Content-Disposition", "attachment; filename=" + myFileName)

Response.AppendHeader("Content-Disposition", "attachment; filename=" & myFileName)

Notice the "+" and "&" in each line.

Should I be using the + or & ? What is the character's purpose in this line of code?

Also, should the character of choice be surrounded with quotes? Information I'm finding on this is sparse and varied.

Thanks for your input, I appreciate it.








Similar Threads
Thread Thread Starter Forum Replies Last Post
Download Code won't download More_Toys BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 15 May 13th, 2006 10:49 AM
Smaller download/single download file available jminatel BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 November 21st, 2005 11:10 AM
response.write crmpicco Classic ASP Basics 1 January 27th, 2005 06:31 PM
i need a response to my q..:-) noor ASP.NET 1.0 and 1.1 Basics 1 January 14th, 2005 05:10 PM





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