Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > GetCSS.aspx View modes: 
User avatar
Member
Member
nanite2000 - 4/18/2013 6:43:40 PM
   
GetCSS.aspx
Hi,

I'm using Kentico v7.0.26.

Whenever I want to view a CSS file served up by Kentico's GetCSS.aspx file (i.e. ~/CMSPages/GetCSS.aspx?stylesheetname=MyFile), I am prompted to download the file in order to view it, rather than the file opening up in the browser window.

All other CSS files that are served directly work correctly.

I have already applied the fix specified in the KB Article at http://devnet.kentico.com/Knowledge-Base/Bug-workarounds/CSS-issue-in-Chrome-26.aspx

Why is this happening?
How can I stop the browser from prompting me to download the file?

Thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 4/22/2013 5:29:50 AM
   
RE:GetCSS.aspx
Hello,

this is a standard behaviour because files are provided to you directly by the script.

If you want to open the CSS file directly in the browser, open the source code (e.g. in Firefox) of the page and click on the css file link, which will open the CSS file directly in the editor window.

The KB article you mentioned is a completely something different... the CSS styles weren't loaded in the last version of Chrome, so the site was not rendered properly because styling was missing.

Best regards,
Martin Danko

User avatar
Member
Member
nanite2000 - 4/22/2013 4:05:52 PM
   
RE:GetCSS.aspx
Hi Martin,

You say:
kentico_martind2 wrote: If you want to open the CSS file directly in the browser, open the source code (e.g. in Firefox) of the page and click on the css file link, which will open the CSS file directly in the editor window.

Oddly enough, your suggestion works in Firefox, but it does not work in Chrome.

It's not really *that* important - it's just a bit inconvenient. Is it just a browser quirk?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 4/25/2013 7:10:04 AM
   
RE:GetCSS.aspx
Hello,

Yes... this behaviour is individual for every browser, maybe there is some browser settings which could change that, so you can try to Google for some solution... or just use the browser which works according to your needs :)

Best regards,
Martin Danko