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.