INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ASP IE9 ListfolderContents not displaying

ASP IE9 ListfolderContents not displaying

(OP)
We have some asp pages on our intranet which display lists of files within a folder, with a hyperlink for users to be able to open the file.

Some of our PC's have recently been upgraded to IE9 and now the files are no longer listed.

See code below that is being used.

CODE -->

<% ListFolderContents (Server.MapPath("Files")) %> 

CODE -->

<% sub ListFolderContents(path)
dim fs, folder, file, item, url
set fs=CreateObject("Scripting.FileSystemObject")
set folder=fs.GetFolder(path)
Response.Write (vbCrLf)
for each item in folder.Files
url=MapURL(item.Path)
Response.Write("<a target=""_blank""href="""& url &""">"_
	& mid(item.Name,3, (len(item.name)-6)) &"</a>"&vbCrLf&"<br>")
 next
Response.Write(vbCrLf)
end sub%>
<% function MapURL(path)
dim rootPath, url
rootPath = Server.MapPath("/")
url = Right(path, Len(path) - Len(rootPath))
MapURL = Replace(url, "\", "/")
end function %>
</p> 


Just for information the latest Mozilla Firefox displays the files with no problems and Google Chrome displays the code (!)

Any help with this would be appreciated.

Jay

RE: ASP IE9 ListfolderContents not displaying

If it works in other browsers and the server code has not been changed, that suggests that there is an issue with the way IE is rendering what is returned, can you post the source of the page from IE and FF/chrome/other browser ?

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
http://www.greggriffiths.org/livelink/

RE: ASP IE9 ListfolderContents not displaying

There's nothing in the code that you posted that would not work in IE9, yet work fine in IE8/FF/Chrome. I agree with ggriffit, look at the underlying html that doesn't work in IE9 yet works in other browsers... there could be other html/css code causing a conflict

RE: ASP IE9 ListfolderContents not displaying

(OP)
Guys

Thanks for coming back to me.

Here is the code from IE9

CODE -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Thurs_Intranet.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Thursfields Intranet - Employee Zone</title>
<!-- InstanceEndEditable -->
<link href="CSS/BASICLAYOUT.CSS" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style12 {font-size: large}
-->
</style>
<style type="text/css">
<!--
.style47 {color: #a1ce67; font-weight: bold; }
-->
</style>
<!-- InstanceEndEditable --><!-- InstanceParam name="id" type="text" value="content" -->
<link href="CSS/print.css" rel="stylesheet" type="text/css" media="print" />
	<script type="text/JavaScript" src="Templates/highlight.js"></script>
<style type="text/css">
<!--
body {
	background-color: #666666;
}
-->
</style></head>
<body>

<div id="wrapper">
<div id="banner"></div>
<div id="nav">
<ul>
<li><a href="depts/genres.html">General</a></li>
<li><a href="depts/Business.html">Business</a></li
>
<li><a href="depts/Family.html">Family</a></li
>
<li><a href="depts/Litigation.html">Litigation</a></li
>
<li><a href="depts/probate.html">Probate</a></li
>
<li><a href="depts/property.html">Property</a>
<li><a href="depts/Support.html">Support</a></li
>
<!--<li><a href="../Search.asp">Search</a></li
> --></ul>
</div>
<div id="rightcol">
<div id="nav_right">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="staffhandbook.asp">Staff Handbook</a></li>
<li><a href="http://www.thursfields.co.uk" target="_blank">Website</a></li>
<li><a href="databases.html">Databases</a></li>
<li><a href="projects.asp">Projects</a></li>
<li><a href="http://vm-exch01/exchange/marketing/Calendar/?Cmd=contents&View=monthly">Marketing Calendar</a></li>
<li><a href="employeezone.asp">Employee Zone</a></li>
</ul>
<p>
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.co.uk/search" target="_blank">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.co.uk/">
<IMG SRC="http://www.google.co.uk/logos/Logo_25wht.gif" 
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search"><p>
<!--<input type="radio"  name="sitesearch" value="" checked />
 The Web<p>
<input type="radio"  name="sitesearch"
 value="\\thweb01\new_intranet\" /> Intranet<br /> -->

</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
<table width="124" cellpadding="0" cellspacing="0" border="0" ><tr><td><a href="http://dictionary.cambridge.org/"><img src="Images/Cambridge.gif" width="125" height="23" alt="Cambridge Dictionaries Online" border="0"></a></td>
</tr>
<tr><td><table width="124" cellpadding="5">
<tr><td nowrap><form action="http://dictionary.cambridge.org/results.asp" method="post">
  <p>
    <input type="text" name="searchword" size="8" style="width: 80px; font-size: 10px; font-face: Verdana, Arial, sans-serif;">
    </p>
  <p>
    <input type="image" src="http://dictionary.cambridge.org/assets/buttons/search_FFFFFF.gif" border="0">
    <input type="hidden" name="dict" value="CALD">
  </p>
</form></td></tr></table></td></tr></table>
</div>
</div>
<div id="Man_Content">
<!-- InstanceBeginEditable name="Man_Content" -->
<h1>EMPLOYEE ZONE</h1>
<hr />
<table width="90%" border="0" align="center">
  <tr>
    <td><p><a href="http://www.websense.com/content/messagereport.aspx"></a></p>
      <p align="center"><a href="History.html"><img src="histimg/9 Partners - full A2.jpg" alt="Partners" width="89" height="90" border="0" /></a></p>
      <p align="center"><span class="style3">Thursfields History: 1877 - onwards... </span></p></td>
    <td><div align="center"><a href="Pictures.html"><img src="Images/album2.jpg" alt="Photo Album" width="148" height="100" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center"><a href="http://translate.google.com/#"><img src="http://www.google.com/intl/en/images/logos/translate_logo.gif" alt="Google" width="183" height="40" border="0" /></a></p>
      <p align="center"><a href="http://translate.google.com/#" class="style47">Language Translation Site </a></p></td>
  </tr>
  <tr>
    <td><div align="center">
      <p>&nbsp;</p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf">Thursfields' A-Z </a></p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf"> List of Services</a></p>
    </div></td>
    <td><div align="center"><a href="http://www.royalmail.com/postcode-finder" target="_blank"><img src="Images/royalmail_logo.gif" alt="Royal Mail PostCode Finder" width="136" height="100" border="0" longdesc="http://postcode.royalmail.com/portal/rm/postcodefinder;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ?catId=400145&amp;gear=postcode" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Departmental</a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf"><strong>Promotional </strong></a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Offers </a></p></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="http://www.thedx.co.uk/" target="_blank"><img src="Images/thedx_logo.gif" alt="DX Online" width="98" height="100" longdesc="http://www.thedx.co.uk/" /></a></div></td>
    <td><div align="center"><a href="Training.asp"><img src="images/training.jpg" width="100" height="100" border="0" align="middle" /></a></div></td>
    <td valign="middle"><div align="center"><a href="noticeboard.htm"><img src="Images/pushpin.jpg" alt="Notice Board" width="140" height="100" /></a></div></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="Suggestion.html"><img src="Images/Suggestion.jpg" alt="Suggestion of the Month" width="150" height="90" align="middle" /></a></div></td>
    <td>&nbsp;</td>
    <td valign="middle"><div align="center"><a href="Refer.html"><img src="Images/Refer.jpg" alt="Refer &amp; Reward Scheme" width="150" height="90" align="middle" /></a></div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
<hr />
<table width="95%" border="0">
  <tr>
    <td width="50%"><h3>GENERAL DOCUMENTS</h3></td>
    <td width="50%"><h3>MEETING ROOMS</h3></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Files")) %>
    </p></td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Meeting Rooms")) %>
    </p></td>
  </tr>
  <tr>
    <td><h4>CLIENT / FILE RELATED DOCUMENTS</h4></td>
    <td><h4>APPRAISAL DOCUMENTATION</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("File Related Documents")) %>
    </p>      </td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Appraisals")) %>
    </p>
      <p class="style13">&nbsp;</p>      </td>
  </tr>
  <tr>
    <td><h4>HR / RECRUITMENT</h4></td>
    <td><h4>BUSINESS PLANS</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("HR")) %>
    </p></td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Business_Plans")) %>
    </p>      </td>
  </tr>
  <tr>
    <td><h4>MARKETING</h4></td>
    <td><h4>DATA PROTECTION / </h4>
      <h4>FREEDOM OF INFORMATION ACT</h4></td>
  </tr>
  <tr>
    <td valign="top"><p class="style13">
      <% ListFolderContents (Server.MapPath("Marketing")) %>
</p>      </td>
	
    <td>
      <div align="left" class="style13">
        <p>
          <% ListFolderContents (Server.MapPath("Dataprotection")) %>
        </p>
        </div></td>
  </tr>
  <tr>
    <td><h4>PHONES</h4></td>
    <td><h4>NETWORKING</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Phones")) %>
    </p></td>
    <td><p class="style13"><a href="Advertising.html">Advertising</a> </p>
      <p class="style13"><a href="http://www.thursfields.com/Firm_News.asp">Press Releases</a></p>
      <p class="style13">
        <% ListFolderContents (Server.MapPath("Networking")) %>
      </p></td>
  </tr>
</table>
<p>
<% sub ListFolderContents(path)
dim fs, folder, file, item, url
set fs=CreateObject("Scripting.FileSystemObject")
set folder=fs.GetFolder(path)
Response.Write (vbCrLf)
for each item in folder.Files
url=MapURL(item.Path)
Response.Write("<a target=""_blank""href="""& url &""">"_
	& mid(item.Name,3, (len(item.name)-6)) &"</a>"&vbCrLf&"<br>")
 next
Response.Write(vbCrLf)
end sub%>
<% function MapURL(path)
dim rootPath, url
rootPath = Server.MapPath("/")
url = Right(path, Len(path) - Len(rootPath))
MapURL = Replace(url, "\", "/")
end function %>
</p>
 <!-- InstanceEndEditable --></div>
</div>

</body>


<!-- InstanceEnd --></html> 

Here is the code from FF which is fine

CODE -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Thurs_Intranet.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Thursfields Intranet - Employee Zone</title>
<!-- InstanceEndEditable -->
<link href="CSS/BASICLAYOUT.CSS" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style12 {font-size: large}
-->
</style>
<style type="text/css">
<!--
.style47 {color: #a1ce67; font-weight: bold; }
-->
</style>
<!-- InstanceEndEditable --><!-- InstanceParam name="id" type="text" value="content" -->
<link href="CSS/print.css" rel="stylesheet" type="text/css" media="print" />
	<script type="text/JavaScript" src="Templates/highlight.js"></script>
<style type="text/css">
<!--
body {
	background-color: #666666;
}
-->
</style></head>
<body>

<div id="wrapper">
<div id="banner"></div>
<div id="nav">
<ul>
<li><a href="depts/genres.html">General</a></li>
<li><a href="depts/Business.html">Business</a></li
>
<li><a href="depts/Family.html">Family</a></li
>
<li><a href="depts/Litigation.html">Litigation</a></li
>
<li><a href="depts/probate.html">Probate</a></li
>
<li><a href="depts/property.html">Property</a>
<li><a href="depts/Support.html">Support</a></li
>
<!--<li><a href="../Search.asp">Search</a></li
> --></ul>
</div>
<div id="rightcol">
<div id="nav_right">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="staffhandbook.asp">Staff Handbook</a></li>
<li><a href="http://www.thursfields.co.uk" target="_blank">Website</a></li>
<li><a href="databases.html">Databases</a></li>
<li><a href="projects.asp">Projects</a></li>
<li><a href="http://vm-exch01/exchange/marketing/Calendar/?Cmd=contents&View=monthly">Marketing Calendar</a></li>
<li><a href="employeezone.asp">Employee Zone</a></li>
</ul>
<p>
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.co.uk/search" target="_blank">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.co.uk/">
<IMG SRC="http://www.google.co.uk/logos/Logo_25wht.gif" 
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search"><p>
<!--<input type="radio"  name="sitesearch" value="" checked />
 The Web<p>
<input type="radio"  name="sitesearch"
 value="\\thweb01\new_intranet\" /> Intranet<br /> -->

</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
<table width="124" cellpadding="0" cellspacing="0" border="0" ><tr><td><a href="http://dictionary.cambridge.org/"><img src="Images/Cambridge.gif" width="125" height="23" alt="Cambridge Dictionaries Online" border="0"></a></td>
</tr>
<tr><td><table width="124" cellpadding="5">
<tr><td nowrap><form action="http://dictionary.cambridge.org/results.asp" method="post">
  <p>
    <input type="text" name="searchword" size="8" style="width: 80px; font-size: 10px; font-face: Verdana, Arial, sans-serif;">
    </p>
  <p>
    <input type="image" src="http://dictionary.cambridge.org/assets/buttons/search_FFFFFF.gif" border="0">
    <input type="hidden" name="dict" value="CALD">
  </p>
</form></td></tr></table></td></tr></table>
</div>
</div>
<div id="Man_Content">
<!-- InstanceBeginEditable name="Man_Content" -->
<h1>EMPLOYEE ZONE</h1>
<hr />
<table width="90%" border="0" align="center">
  <tr>
    <td><p><a href="http://www.websense.com/content/messagereport.aspx"></a></p>
      <p align="center"><a href="History.html"><img src="histimg/9 Partners - full A2.jpg" alt="Partners" width="89" height="90" border="0" /></a></p>
      <p align="center"><span class="style3">Thursfields History: 1877 - onwards... </span></p></td>
    <td><div align="center"><a href="Pictures.html"><img src="Images/album2.jpg" alt="Photo Album" width="148" height="100" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center"><a href="http://translate.google.com/#"><img src="http://www.google.com/intl/en/images/logos/translate_logo.gif" alt="Google" width="183" height="40" border="0" /></a></p>
      <p align="center"><a href="http://translate.google.com/#" class="style47">Language Translation Site </a></p></td>
  </tr>
  <tr>
    <td><div align="center">
      <p>&nbsp;</p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf">Thursfields' A-Z </a></p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf"> List of Services</a></p>
    </div></td>
    <td><div align="center"><a href="http://www.royalmail.com/postcode-finder" target="_blank"><img src="Images/royalmail_logo.gif" alt="Royal Mail PostCode Finder" width="136" height="100" border="0" longdesc="http://postcode.royalmail.com/portal/rm/postcodefinder;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ?catId=400145&amp;gear=postcode" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Departmental</a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf"><strong>Promotional </strong></a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Offers </a></p></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="http://www.thedx.co.uk/" target="_blank"><img src="Images/thedx_logo.gif" alt="DX Online" width="98" height="100" longdesc="http://www.thedx.co.uk/" /></a></div></td>
    <td><div align="center"><a href="Training.asp"><img src="images/training.jpg" width="100" height="100" border="0" align="middle" /></a></div></td>
    <td valign="middle"><div align="center"><a href="noticeboard.htm"><img src="Images/pushpin.jpg" alt="Notice Board" width="140" height="100" /></a></div></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="Suggestion.html"><img src="Images/Suggestion.jpg" alt="Suggestion of the Month" width="150" height="90" align="middle" /></a></div></td>
    <td>&nbsp;</td>
    <td valign="middle"><div align="center"><a href="Refer.html"><img src="Images/Refer.jpg" alt="Refer &amp; Reward Scheme" width="150" height="90" align="middle" /></a></div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
<hr />
<table width="95%" border="0">
  <tr>
    <td width="50%"><h3>GENERAL DOCUMENTS</h3></td>
    <td width="50%"><h3>MEETING ROOMS</h3></td>
  </tr>
  <tr>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/Files/01 Internal Staff Telephone List.pdf"> Internal Staff Telephone List</a>
<br><a target="_blank"href="/intranet/Files/02 Bank Holiday & Occasional Days calculations.pdf"> Bank Holiday & Occasional Days calculations</a>
<br><a target="_blank"href="/intranet/Files/02 Bank Holidays & OC days 2012-2013.pdf"> Bank Holidays & OC days 2012-2013</a>
<br><a target="_blank"href="/intranet/Files/03 Kidderminster Car Parking Allocation.pdf"> Kidderminster Car Parking Allocation</a>
<br><a target="_blank"href="/intranet/Files/04 Refer and Reward rules.pdf"> Refer and Reward rules</a>
<br><a target="_blank"href="/intranet/Files/05 Refer and Reward Voucher.pdf"> Refer and Reward Voucher</a>
<br><a target="_blank"href="/intranet/Files/07 Single Recycling Label for Toner Cartrige.pdf"> Single Recycling Label for Toner Cartrige</a>
<br><a target="_blank"href="/intranet/Files/08 Barclays Account  Address details.pdf"> Barclays Account  Address details</a>
<br><a target="_blank"href="/intranet/Files/09.doc"></a>
<br><a target="_blank"href="/intranet/Files/10 Training Record Template (CPD).xls"> Training Record Template (CPD)</a>
<br><a target="_blank"href="/intranet/Files/10 Travel and Expenses Claim form template.xls"> Travel and Expenses Claim form template</a>
<br><a target="_blank"href="/intranet/Files/11 Thursfields' A - Z Directory of Services.pdf"> Thursfields' A - Z Directory of Services</a>
<br><a target="_blank"href="/intranet/Files/12 Time Sheet (weekly).pdf"> Time Sheet (weekly)</a>
<br><a target="_blank"href="/intranet/Files/13 Laserforms List.pdf"> Laserforms List</a>
<br>

    </p></td>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/Meeting Rooms/00 Outlook - Appointments and Resources.pdf"> Outlook - Appointments and Resources</a>
<br><a target="_blank"href="/intranet/Meeting Rooms/01 Harriers Suite - Rooms 1, 2 and 3.pdf"> Harriers Suite - Rooms 1, 2 and 3</a>
<br><a target="_blank"href="/intranet/Meeting Rooms/02 Project Room - Kidderminster.pdf"> Project Room - Kidderminster</a>
<br>

    </p></td>
  </tr>
  <tr>
    <td><h4>CLIENT / FILE RELATED DOCUMENTS</h4></td>
    <td><h4>APPRAISAL DOCUMENTATION</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/File Related Documents/01 THF03 Individual Contact Information Form.pdf"> THF03 Individual Contact Information Form</a>
<br><a target="_blank"href="/intranet/File Related Documents/01 THF03 Organisation Contact Information Form.pdf"> THF03 Organisation Contact Information Form</a>
<br><a target="_blank"href="/intranet/File Related Documents/02 THERRF External Referral Received Form.DOC"> THERRF External Referral Received Form</a>
<br><a target="_blank"href="/intranet/File Related Documents/03 THERMF External Referral Made Form.DOC"> THERMF External Referral Made Form</a>
<br><a target="_blank"href="/intranet/File Related Documents/04 THIRF Internal Referral Form.doc"> THIRF Internal Referral Form</a>
<br><a target="_blank"href="/intranet/File Related Documents/05 THIRUF - Internal Referral UPDATE Form.doc"> THIRUF - Internal Referral UPDATE Form</a>
<br>

    </p>      </td>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/Appraisals/00 Career Progression Application Form.doc"> Career Progression Application Form</a>
<br><a target="_blank"href="/intranet/Appraisals/00 Career Structure.pdf"> Career Structure</a>
<br><a target="_blank"href="/intranet/Appraisals/01 Appraisal 2012 Fee Earners and Managers.doc"> Appraisal 2012 Fee Earners and Managers</a>
<br><a target="_blank"href="/intranet/Appraisals/01 Appraisal 2012 Support Staff.doc"> Appraisal 2012 Support Staff</a>
<br><a target="_blank"href="/intranet/Appraisals/03 1 to1 Proforma v 5.pdf"> 1 to1 Proforma v 5</a>
<br>

    </p>
      <p class="style13">&nbsp;</p>      </td>
  </tr>
  <tr>
    <td><h4>HR / RECRUITMENT</h4></td>
    <td><h4>BUSINESS PLANS</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/HR/00 2012 Application form - internal.doc"> 2012 Application form - internal</a>
<br><a target="_blank"href="/intranet/HR/01 2012 Equal Opportunities Monitoring Form.doc"> 2012 Equal Opportunities Monitoring Form</a>
<br><a target="_blank"href="/intranet/HR/01 Group Life Memo 2009 onw.pdf"> Group Life Memo 2009 onw</a>
<br><a target="_blank"href="/intranet/HR/02 Absence from Work Statement 2012.doc"> Absence from Work Statement 2012</a>
<br><a target="_blank"href="/intranet/HR/02 HP Workstation Safety and Comfort Guide .pdf"> HP Workstation Safety and Comfort Guide </a>
<br><a target="_blank"href="/intranet/HR/02 Working with VDUs (HSE Guide).pdf"> Working with VDUs (HSE Guide)</a>
<br><a target="_blank"href="/intranet/HR/03 Bereavement Support - Families Sep 2010.pdf"> Bereavement Support - Families Sep 2010</a>
<br><a target="_blank"href="/intranet/HR/Thumbs.db">umb</a>
<br>

    </p></td>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/Business_Plans/01 Strategic Steering Wheel 2012-2013.pdf"> Strategic Steering Wheel 2012-2013</a>
<br><a target="_blank"href="/intranet/Business_Plans/Co Commercial Services Dept Business Plan 2011.pdf"> Commercial Services Dept Business Plan 2011</a>
<br><a target="_blank"href="/intranet/Business_Plans/Fa Family Dept Business Plan 2011.pdf"> Family Dept Business Plan 2011</a>
<br><a target="_blank"href="/intranet/Business_Plans/Pr Property Dept Business Plan 2011.pdf"> Property Dept Business Plan 2011</a>
<br>

    </p>      </td>
  </tr>
  <tr>
    <td><h4>MARKETING</h4></td>
    <td><h4>DATA PROTECTION / </h4>
      <h4>FREEDOM OF INFORMATION ACT</h4></td>
  </tr>
  <tr>
    <td valign="top"><p class="style13">
      
<a target="_blank"href="/intranet/Marketing/01 Cross Selling Cribsheet.pdf"> Cross Selling Cribsheet</a>
<br>

</p>      </td>
	
    <td>
      <div align="left" class="style13">
        <p>
          
<a target="_blank"href="/intranet/Dataprotection/01 Freedom of Information.wmv"> Freedom of Information</a>
<br><a target="_blank"href="/intranet/Dataprotection/02 Data Protection.wmv"> Data Protection</a>
<br>

        </p>
        </div></td>
  </tr>
  <tr>
    <td><h4>PHONES</h4></td>
    <td><h4>NETWORKING</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      
<a target="_blank"href="/intranet/Phones/01 Telephones  - User Guide.pdf"> Telephones  - User Guide</a>
<br><a target="_blank"href="/intranet/Phones/02 Telephones - Voicemail Instructions.pdf"> Telephones - Voicemail Instructions</a>
<br><a target="_blank"href="/intranet/Phones/03 Telephones - Phone Manager Guide.pdf"> Telephones - Phone Manager Guide</a>
<br><a target="_blank"href="/intranet/Phones/04 Telephones - WOC.pdf"> Telephones - WOC</a>
<br><a target="_blank"href="/intranet/Phones/05 BT Relate 1500 Manual.pdf"> BT Relate 1500 Manual</a>
<br><a target="_blank"href="/intranet/Phones/06 Interquartz Gemini Manual.pdf"> Interquartz Gemini Manual</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia 3330 User guide.pdf"> Nokia 3330 User guide</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia 6021 User guide.pdf"> Nokia 6021 User guide</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia 6230i User guide.pdf"> Nokia 6230i User guide</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia 6260 User guide.pdf"> Nokia 6260 User guide</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia 6310i User guide.pdf"> Nokia 6310i User guide</a>
<br><a target="_blank"href="/intranet/Phones/07 Nokia E51 User guide.pdf"> Nokia E51 User guide</a>
<br><a target="_blank"href="/intranet/Phones/08 HTC Wildfire Quick Guide.pdf"> HTC Wildfire Quick Guide</a>
<br><a target="_blank"href="/intranet/Phones/08 HTC Wildfire.pdf"> HTC Wildfire</a>
<br><a target="_blank"href="/intranet/Phones/09 Fuji Finepix S5800.pdf"> Fuji Finepix S5800</a>
<br><a target="_blank"href="/intranet/Phones/Thumbs.db">umb</a>
<br>

    </p></td>
    <td><p class="style13"><a href="Advertising.html">Advertising</a> </p>
      <p class="style13"><a href="http://www.thursfields.com/Firm_News.asp">Press Releases</a></p>
      <p class="style13">
        
<a target="_blank"href="/intranet/Networking/02 The Networking Factor by Kate Atkin Oct 08.pdf"> The Networking Factor by Kate Atkin Oct 08</a>
<br>

      </p></td>
  </tr>
</table>
<p>

</p>
 <!-- InstanceEndEditable --></div>
</div>

</body>


<!-- InstanceEnd --></html> 


And this is the source code from Chrome which displays the code not the files

CODE -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Thurs_Intranet.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Thursfields Intranet - Employee Zone</title>
<!-- InstanceEndEditable -->
<link href="CSS/BASICLAYOUT.CSS" rel="stylesheet" type="text/css" />
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style12 {font-size: large}
-->
</style>
<style type="text/css">
<!--
.style47 {color: #a1ce67; font-weight: bold; }
-->
</style>
<!-- InstanceEndEditable --><!-- InstanceParam name="id" type="text" value="content" -->
<link href="CSS/print.css" rel="stylesheet" type="text/css" media="print" />
	<script type="text/JavaScript" src="Templates/highlight.js"></script>
<style type="text/css">
<!--
body {
	background-color: #666666;
}
-->
</style></head>
<body>

<div id="wrapper">
<div id="banner"></div>
<div id="nav">
<ul>
<li><a href="depts/genres.html">General</a></li>
<li><a href="depts/Business.html">Business</a></li
>
<li><a href="depts/Family.html">Family</a></li
>
<li><a href="depts/Litigation.html">Litigation</a></li
>
<li><a href="depts/probate.html">Probate</a></li
>
<li><a href="depts/property.html">Property</a>
<li><a href="depts/Support.html">Support</a></li
>
<!--<li><a href="../Search.asp">Search</a></li
> --></ul>
</div>
<div id="rightcol">
<div id="nav_right">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="staffhandbook.asp">Staff Handbook</a></li>
<li><a href="http://www.thursfields.co.uk" target="_blank">Website</a></li>
<li><a href="databases.html">Databases</a></li>
<li><a href="projects.asp">Projects</a></li>
<li><a href="http://vm-exch01/exchange/marketing/Calendar/?Cmd=contents&View=monthly">Marketing Calendar</a></li>
<li><a href="employeezone.asp">Employee Zone</a></li>
</ul>
<p>
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.co.uk/search" target="_blank">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.co.uk/">
<IMG SRC="http://www.google.co.uk/logos/Logo_25wht.gif" 
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=15 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Search"><p>
<!--<input type="radio"  name="sitesearch" value="" checked />
 The Web<p>
<input type="radio"  name="sitesearch"
 value="\\thweb01\new_intranet\" /> Intranet<br /> -->

</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
<table width="124" cellpadding="0" cellspacing="0" border="0" ><tr><td><a href="http://dictionary.cambridge.org/"><img src="Images/Cambridge.gif" width="125" height="23" alt="Cambridge Dictionaries Online" border="0"></a></td>
</tr>
<tr><td><table width="124" cellpadding="5">
<tr><td nowrap><form action="http://dictionary.cambridge.org/results.asp" method="post">
  <p>
    <input type="text" name="searchword" size="8" style="width: 80px; font-size: 10px; font-face: Verdana, Arial, sans-serif;">
    </p>
  <p>
    <input type="image" src="http://dictionary.cambridge.org/assets/buttons/search_FFFFFF.gif" border="0">
    <input type="hidden" name="dict" value="CALD">
  </p>
</form></td></tr></table></td></tr></table>
</div>
</div>
<div id="Man_Content">
<!-- InstanceBeginEditable name="Man_Content" -->
<h1>EMPLOYEE ZONE</h1>
<hr />
<table width="90%" border="0" align="center">
  <tr>
    <td><p><a href="http://www.websense.com/content/messagereport.aspx"></a></p>
      <p align="center"><a href="History.html"><img src="histimg/9 Partners - full A2.jpg" alt="Partners" width="89" height="90" border="0" /></a></p>
      <p align="center"><span class="style3">Thursfields History: 1877 - onwards... </span></p></td>
    <td><div align="center"><a href="Pictures.html"><img src="Images/album2.jpg" alt="Photo Album" width="148" height="100" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center"><a href="http://translate.google.com/#"><img src="http://www.google.com/intl/en/images/logos/translate_logo.gif" alt="Google" width="183" height="40" border="0" /></a></p>
      <p align="center"><a href="http://translate.google.com/#" class="style47">Language Translation Site </a></p></td>
  </tr>
  <tr>
    <td><div align="center">
      <p>&nbsp;</p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf">Thursfields' A-Z </a></p>
      <p class="style12"><a href="Files/11 Thursfields' A - Z Directory of Services.pdf"> List of Services</a></p>
    </div></td>
    <td><div align="center"><a href="http://www.royalmail.com/postcode-finder" target="_blank"><img src="Images/royalmail_logo.gif" alt="Royal Mail PostCode Finder" width="136" height="100" border="0" longdesc="http://postcode.royalmail.com/portal/rm/postcodefinder;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ;jsessionid=PLTIGEGWFP2UWFB2IGIVEOQ?catId=400145&amp;gear=postcode" /></a></div></td>
    <td><p>&nbsp;</p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Departmental</a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf"><strong>Promotional </strong></a></p>
      <p align="center" class="style12"><a href="Promotional Offers.pdf">Offers </a></p></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="http://www.thedx.co.uk/" target="_blank"><img src="Images/thedx_logo.gif" alt="DX Online" width="98" height="100" longdesc="http://www.thedx.co.uk/" /></a></div></td>
    <td><div align="center"><a href="Training.asp"><img src="images/training.jpg" width="100" height="100" border="0" align="middle" /></a></div></td>
    <td valign="middle"><div align="center"><a href="noticeboard.htm"><img src="Images/pushpin.jpg" alt="Notice Board" width="140" height="100" /></a></div></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a href="Suggestion.html"><img src="Images/Suggestion.jpg" alt="Suggestion of the Month" width="150" height="90" align="middle" /></a></div></td>
    <td>&nbsp;</td>
    <td valign="middle"><div align="center"><a href="Refer.html"><img src="Images/Refer.jpg" alt="Refer &amp; Reward Scheme" width="150" height="90" align="middle" /></a></div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
<hr />
<table width="95%" border="0">
  <tr>
    <td width="50%"><h3>GENERAL DOCUMENTS</h3></td>
    <td width="50%"><h3>MEETING ROOMS</h3></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Files")) %>
    </p></td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Meeting Rooms")) %>
    </p></td>
  </tr>
  <tr>
    <td><h4>CLIENT / FILE RELATED DOCUMENTS</h4></td>
    <td><h4>APPRAISAL DOCUMENTATION</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("File Related Documents")) %>
    </p>      </td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Appraisals")) %>
    </p>
      <p class="style13">&nbsp;</p>      </td>
  </tr>
  <tr>
    <td><h4>HR / RECRUITMENT</h4></td>
    <td><h4>BUSINESS PLANS</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("HR")) %>
    </p></td>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Business_Plans")) %>
    </p>      </td>
  </tr>
  <tr>
    <td><h4>MARKETING</h4></td>
    <td><h4>DATA PROTECTION / </h4>
      <h4>FREEDOM OF INFORMATION ACT</h4></td>
  </tr>
  <tr>
    <td valign="top"><p class="style13">
      <% ListFolderContents (Server.MapPath("Marketing")) %>
</p>      </td>
	
    <td>
      <div align="left" class="style13">
        <p>
          <% ListFolderContents (Server.MapPath("Dataprotection")) %>
        </p>
        </div></td>
  </tr>
  <tr>
    <td><h4>PHONES</h4></td>
    <td><h4>NETWORKING</h4></td>
  </tr>
  <tr>
    <td><p class="style13">
      <% ListFolderContents (Server.MapPath("Phones")) %>
    </p></td>
    <td><p class="style13"><a href="Advertising.html">Advertising</a> </p>
      <p class="style13"><a href="http://www.thursfields.com/Firm_News.asp">Press Releases</a></p>
      <p class="style13">
        <% ListFolderContents (Server.MapPath("Networking")) %>
      </p></td>
  </tr>
</table>
<p>
<% sub ListFolderContents(path)
dim fs, folder, file, item, url
set fs=CreateObject("Scripting.FileSystemObject")
set folder=fs.GetFolder(path)
Response.Write (vbCrLf)
for each item in folder.Files
url=MapURL(item.Path)
Response.Write("<a target=""_blank""href="""& url &""">"_
	& mid(item.Name,3, (len(item.name)-6)) &"</a>"&vbCrLf&"<br>")
 next
Response.Write(vbCrLf)
end sub%>
<% function MapURL(path)
dim rootPath, url
rootPath = Server.MapPath("/")
url = Right(path, Len(path) - Len(rootPath))
MapURL = Replace(url, "\", "/")
end function %>
</p>
 <!-- InstanceEndEditable --></div>
</div>

</body>


<!-- InstanceEnd --></html> 

I haven't a clue what I'm looking for so any pointers/help would be appreciated.

Many thanks

jay

RE: ASP IE9 ListfolderContents not displaying

Given that Chrome shows the code there must be some problem with the way the server is handling the file type. Because the browser cannot change how the server renders the code UNLESS you have some USER_AGENT_STRING processing and redirecting BEFORE the final URL is requested.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close