Hi Mahakaal,
If you are sure that the extension is always in Excel format, then do the modification as follows:
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name + ".XLS");
You are missing the Excel format tag at the end.
Let me know if this helped you or not.
Happy coding...:)
Thanks,
RelicV