When I access my aspx page in chrome or safari it shows this error in console
Not allowed to load local resource: file:///D:/CSS/Style.css
Everything works fine in IE and FF.
I use an external CSS which is linked in aspx page via
<link rel="stylesheet" media="all" href="file:///D:/CSS/Style.css" type="text/css" />
I have tried all the combination of "/" & "\" slashes..
Whether I am giving file path in wrong manner or its any security exception in these browsers(I am logged in as administrator)... What am I doing wrong?
You wont be able to access a local resource from your aspx page (web server). Have you tried a relative path from your aspx page to your css file like so...
<link rel="stylesheet" media="all" href="/CSS/Style.css" type="text/css" />
The above assumes that you have a folder called CSS
in the root of your website like this:
http://www.website.com/CSS/Style.css