Guys,
Here is what I see...
As I work through the screens leading up to the file creation screen, I see the expected screen procedure file names at the _GetContentType method.
But, on the NetWebForm where I have the progress bar and button to create the file, and once the "Click Here to Download File" link appears, when I click on it, there is no call to the _GetContentType method.
If I hover the mouse over the download link (using Firefox) I see 127.0.0.1/QBFolder/Test.IIF displayed in the lower left of the browser screen (which is the expected path). But, if I click on the link, no call at the _GetContentType, and a new tab in the browser opens and the text of the Test.IIF file is displayed on the browser screen.
Now, get this, if I right click on the link and select Save Link As, the _GetContentType method is called and the Test.IIF file name is detected in _GetContentType. AFTER that, if I then click on the download link, the Test.IIF file name is detected in _GetContentType as you expected, and the proper messages about opening in excel or saving the file appear.
So, for some reason, when I click on the link after it is generated, _GetContentType is not being accessed. But it is if I right click on the link and select Save Link As, and after that, clicking on the link does access _GetContentType and the vnd.ms-excel code works perfectly.
Does that make sense?
Thanks for your help on this.
Mike