When downloading an excel file there is no extension for the file



When I try to download an excel file it brings up the correct download dialog box, but it doesn't have the excel file extension when it downloads. It only has an extension of "all files". I am using Internet Explorer 7.0 and wondered if this was a cause for the problem. It seems to work in any other browsers. Here is my code to download an excel file.

workbook.Save(Session["Title"].ToString(), FileFormatType.Default, SaveType.OpenInExcel, Response);

Please let me know if you need any more information. Thank you for your help.


Please try:

workbook.Save(Session["Title"].ToString() + ".xls", FileFormatType.Default, SaveType.OpenInExcel, Response);