Well, no - it won't.
Look at your code:
var myMemoryStream = new MemoryStream();
Response.Clear();
Response.ContentType = "Application/msword";
Response.AddHeader("Content-Disposition";"attachment;filename=" + strFilename);
Response.BinaryWrite(myMemoryStream.ToArray());
myMemoryStream is
new
, so contains no data - so the system (correctly) transfers no bytes...and that means no download.
Perhaps you forgot to load the
MemoryStream
with data from a file or database somewhere?