Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Using Response.ContentType


Message #1 by careykwan@h... on Wed, 7 Nov 2001 23:39:48
Does anyone know why MS-Excel sometimes opens up inside of the browser 

when you use Response.ContentType = "application/vnd.ms-excel"? On 

different machines it just opens up Excel without the browser.  Is this 

caused by some kind of browser setting?



Thanks in advance.



Carey Kwan
Message #2 by "phil griffiths" <pgtips@m...> on Thu, 8 Nov 2001 09:59:11
its a windows setting, in Windows Explorer choose View | Folder Options 

and look at the File Types tab on the dialog that comes up.  Choose MS 

Excel Worksheet from the list and click the 'Edit' button to bring up a 

2nd dialog.  At the bottom you'll see a checkbox 'browse in same window'.  

If thats on it comes up inside the browser, if its off it comes up 

separately. (N.B. this is what it looks like on my NT4 machine)



Basically, from a webserver point of view there's nothing you can do about 

it - its controlled by the client (as it should be).



HTH

Phil

> Does anyone know why MS-Excel sometimes opens up inside of the browser 

> when you use Response.ContentType = "application/vnd.ms-excel"? On 

> different machines it just opens up Excel without the browser.  Is this 

> caused by some kind of browser setting?

> 

> Thanks in advance.

> 

> Carey Kwan
Message #3 by careykwan@h... on Thu, 8 Nov 2001 20:20:13
Phil,



Thanks for the response.  However, I don't seem to have that checkbox on 

the second dialog box.  The only checkboxes on the bottom were 



Confirm Open After Download

Enable Quick View

Always show extension



Can this setting be changed somewhere else?  Thanks again.
Message #4 by "phil griffiths" <pgtips@m...> on Fri, 9 Nov 2001 09:34:55
I also have these three options in addition to the browse one. My setup is 

NT4 + SP6 + OptionPack - is this the same as yours?



Sorry, but I don't know anywhere else this is stored.  Perhaps as an IE 

registry setting somewhere (I'm just guessing here).



Phil

> Phil,

> 

> Thanks for the response.  However, I don't seem to have that checkbox on 

> the second dialog box.  The only checkboxes on the bottom were 

> 

> Confirm Open After Download

> Enable Quick View

> Always show extension

> 

> Can this setting be changed somewhere else?  Thanks again.
Message #5 by careykwan@h... on Sun, 11 Nov 2001 03:24:34
I will try installing SP6.  We just have SP5 now.  Thanks for your help

  Return to Index