While coding a webpage using cshtml, I encountered an issue with a link pointing to a doc or pdf file in a Windows server location. In Windows Explorer, the file could be opened by clicking the link, but Chrome or Mozilla did not allow me to open the file due to security reasons as I learned from searching on SO.
Although I accepted this limitation, another problem arose - the layout of the page was not displaying properly on Internet Explorer 11 or 8.
Below is my code snippet:
@{
var dataFile = Server.MapPath("~/App_Data/Issues.txt");
Array userData = File.ReadAllLines(dataFile);
}
<!DOCTYPE html>
<html>
...
CSS:
table.abc
{
...
}
body
{
...
}
...
(Didnt try in other version of IE)