I'm simply bewildered. I tried to set up my basic HTML website in IIS and am getting 3 different results between the main browsers. (It's supposed to look like Chrome's display.) They all work locally, but through "mycompname/website/default.html" it does what you see below. Thanks.
HTML (As per request)
<html>
<title>Website</title>
<head>
<link rel="stylesheet" type="text/css" href="styles/clean.css" />
<link rel="stylesheet" type="text/css" href="styles/style.css" />
<script type="text/javascript" src="scripts/jquery-1.7.1.js"></script>
<script type="text/javascript">
$(function() {
// Page Load Functions
$.ajaxSetup({cache:false})
$('#menu ul li ul').hide(); // Hides submenus
// Hides submenus
$('#menu > *').mouseleave(function(){
$('#menu ul li ul').slideUp('slow');
});
// Shows submenu
$('#menu > ul > li > a').hover(function(){
if(!$(this).parent().children('ul').is(':visible'))
{
$('#menu ul li ul').slideUp('slow');
$(this).parent().children('ul').slideDown('slow');
}
});
$('#menu > ul > li > ul > li > a').click(function(e){
e.preventDefault()
if($(this).attr('href') != '#')
$('#main').load('content/' + $(this).attr('href'));
});
});
</script>
</head>
<body>
<div id="wrapper">
<div id="header">Put fancy logo here.</div>
<div id="menu">
<ul>
<li>
<ul>
<li><a href="test.html">SubMenu Item 1-1</a></li>
<li><a href="#">SubMenu Item 1-2</a></li>
<li><a href="#">SubMenu Item 1-3</a></li>
<li><a href="#">SubMenu Item 1-4</a></li>
<li><a href="#">SubMenu Item 1-5</a></li>
</ul>
<a>menu 1</a>
</li>
<li>
<ul>
<li><a href="#">SubMenu Item 2-1</a></li>
<li><a href="#">SubMenu Item 2-2</a></li>
<li><a href="#">SubMenu Item 2-3</a></li>
<li><a href="#">SubMenu Item 2-4</a></li>
<li><a href="#">SubMenu Item 2-5</a></li>
</ul>
<a>menu 2</a>
</li>
<li>
<ul>
<li><a href="#">SubMenu Item 3-1</a></li>
<li><a href="#">SubMenu Item 3-2</a></li>
<li><a href="#">SubMenu Item 3-3</a></li>
<li><a href="#">SubMenu Item 3-4</a></li>
<li><a href="#">SubMenu Item 3-5</a></li>
</ul>
<a>About Us</a>
</li>
</ul>
</div>
<div id="main">
</div>
<div id="footer">
© 2012 xxx. All rights reserved.
</div>
</div>
</body>
</html>
See what is the HTTP Code you are getting? Check it out here: http://support.microsoft.com/kb/318380
Are you hosting the site on iis? if so make sure the account your website runs under has access to local file system?
Straight from msdn .....
The Network Service account has Read and Execute permissions on the IIS server root folder by default. The IIS server root folder is named Wwwroot. This means that an ASP.NET application deployed inside the root folder already has Read and Execute permissions to its application folders. However, if your ASP.NET application needs to use files or folders in other locations, you must specifically enable access.
To provide access to an ASP.NET application running as Network Service, you must grant access to the Network Service account.
To grant read, write, and modify permissions to a specific file
Click here for more
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.