All Forums >> [Scripting] >> ASP >> open a file from asp page with one click Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
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.
<% 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.URLEncode(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.