Try adding
Content-Disposition
in header.
Try this:
string blabla = "Hello World";
Response.Clear();
Response.ContentType = "text/plain";
Response.AddHeader("Content-Disposition", String.Format("attachment;filename=helloWorld.txt"));
Response.ContentEncoding = Encoding.Default;
byte[] bytes = Encoding.Default.GetBytes(blabla);
Response.BinaryWrite(bytes);
Response.End();
--Amit