Click on link to open file from .asp
First of all, excuse me if I sound like a fool, I am just getting started at this.
I have an .asp page which is displays a list of the contents of a windows folder. My goal is to be able to click on file name and open it up for viewing, like any other href link.
the code is currently
<tr>
<td class="TableHeader">Client Files</td>
</tr>
<%
If ClientFolderExists Then
%>
<tr>
<td class="Label">Folder: <a href="<%=ClientFolders & ClientFolder%>"> <%=ClientFolder%></a></td>
</tr>
<%
End If
%>
<tr>
<td>
<iframe height=300 frameborder=no src="ClientFiles.asp?FolderName=<%=Server.URLEncod e(ClientFolders & ClientFolder)%>"></iframe>
</td>
</tr>
As the code is now, I can right click on the link, copy the link and paste it into a browser and it will open up the file. However, I want simply to be able to click on the link to open up the file.
here is a sample link which the code creates
file:///c:/inetpub/wwwroot/matis/ClientFolders/Druse,%20III,%20Frank-126/ticket%20and%20agreement.tif
|