Hi ,
i have a binary array to save in a specified location. all i want is to save that file in a predefined Path. (without a dialog box to the user to chose the location.)
Here is my Code.
filename = string.Format("{0}.{1}", "ExportToExcel", "xls");
Response.Buffer = true;
Response.Clear();
Response.ContentType = mimeType;
Response.AppendHeader("content-disposition","attachment; filename ="+ filename);
Response.BinaryWrite(bytes1); // create the file
Response.TransmitFile("E:\\Projects\\ExportToExcel.xls");
Response.Flush();
Response.End();
this above code is showing a save file dialog which is not suitable for my requirement. please provide me a quick solution.
Thanks & Regards,
Sateesh Kumar S
sateesh kumar singupuram