Author: nittels | Posted on: 4/8/2005 8:36:05 AM | Views : 625

I would like to display the existing .doc files from a specified Folder on a webpage as links. I already have a simple page where this works great.
<%@ Page Language="VB" Debug="True" %><%@ Import Namespace="System" %><%@ Import Namespace="System.IO" %>
<script language="VB" runat="server">Dim Files As FileInfo()Sub Page_Load(Sender as Object, E as EventArgs)   Dim FullPathName As String = path.GetDirectoryName(server.mappath(Request.ServerVariables("PATH_INFO")))   Dim dir As DirectoryInfo = new DirectoryInfo(FullPathName)   Files = dir.GetFiles()End Sub</script>
<body>
<% Dim Filename As StringDim File As FileInfoFor Each File In FilesFilename = File.name %>
<% ...

Go to the complete details ...