home *** CD-ROM | disk | FTP | other *** search
- <%
- Source=Request.QueryString("Source")
- %>
-
- <HTML>
- <HEAD>
- <META NAME="DESCRIPTION" Content="FRAMESET Page for displaying sample ASP source code and output">
- <META NAME="GENERATOR" CONTENT="Microsoft Visual InterDev 1.0">
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
- <TITLE><%=Source%></TITLE>
- </HEAD>
-
- <%If FileExists(Source) Then %>
- <FRAMESET SCROLLING="YES" ROWS="*">
- <FRAME SRC="CodeBrws.asp?source=<%=Source %>" NAME="CodeSource">
- </FRAMESET>
-
- <BODY BGCOLOR=#FFFFFF TOPMARGIN=0 LEFTMARGIN=0 ALINK=#23238E VLINK=#808080 LINK=#FFCC00>
- <BASEFONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2>
-
- </BODY>
-
- <%Else%>
-
- <BODY BGCOLOR=#FFFF9B TOPMARGIN=0 LEFTMARGIN=0 ALINK=#23238E VLINK=#228B22 LINK=#23238E>
- <BASEFONT FACE="VERDANA, ARIAL, HELVETICA" SIZE=2>
-
- <CENTER><H1>The source code for this page could not be found.</H1>
- </CENTER>
- </BODY>
-
- <%End If%>
-
- </HTML>
-
- <%
- ' Function to determine if a file exists
- Function FileExists(Source)
- On Error Resume Next
-
- strFilename = Server.MapPath(Source)
- Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
-
- FileExists = False
-
- ' Attempt to open the file
- Set oTempStream = FileObject.OpenTextFile(strFilename, 1, FALSE, TRUE )
- If Err = 0 Then FileExists = True
- End Function
- %>