Article ID: 272656 - Last Review: July 7, 2008 - Revision: 7.1 How to Create a File Viewer By Using ASPThis article was previously published under Q272656 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site: http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
On This PageSUMMARY
This article describes how to use Microsoft Active Server Pages (ASP) technologies to create a generic file viewer by using the Scripting.FileSystemObject. Important NoteIf you use the code in this article improperly, the code can be used to view folders outside of a Web site. For additional information on preventing this, click the article numbers below to view the articles in the Microsoft Knowledge Base:184717
(http://support.microsoft.com/kb/184717/EN-US/
)
AspEnableParentPaths MetaBase Property Should Be Set To False
276548
(http://support.microsoft.com/kb/276548/EN-US/
)
ASP Error 0131 When Browsing to Database Results Region ASP Page
MORE INFORMATIONGeneral DisclaimerMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.Page Viewer Example CodeUse the following steps to create the page viewer ASP page.NOTE: You must have Basic/Clear Text, Integrated/NTLM, or Digest authentication enabled to use this example.
REFERENCESFor additional information on this topic, click the article numbers below to view the articles in the Microsoft Knowledge Base:218606
(http://support.microsoft.com/kb/218606/EN-US/
)
HOWTO: ASP and Scripting FileSystemObject to Create Dynamic TOC
224364
(http://support.microsoft.com/kb/224364/EN-US/
)
Creating a Directory Browsing Page Using ASP
201133
(http://support.microsoft.com/kb/201133/EN-US/
)
Scripting Change Occurs When Upgrading from IIS 3.0
| Article Translations
|

Back to the top
