M
.:mmac:.
My ASP page is doing something wierd, I think it has something to do with
the %2E replacing the dot in the file name But in addition, if I right click
the link and select "save as", the file extension is duplicated as
"Week20.pdf.pdf"
here is the relevant info:
<%
set directory=server.createobject("scripting.filesystemobject")
set allfiles=directory.getfolder(server.mappath("/MMM/Lesson/"))
' Lists all the files found in the directory
For each directoryfile in allFiles.files
%>
<a href=MMM/Lesson/ <%
' Write out the name of the document
response.write server.urlencode(directoryfile.name) %>><%
response.write directoryfile.name %>
</a>
This is how it turns up in the source of the published page"
<a href=MMM/Lesson/
Week20%2Epdf>Week20.pdf
</a>
The "%E2" is something I never noticed before.
does the code look right?
what about the duplicated extensions?
the %2E replacing the dot in the file name But in addition, if I right click
the link and select "save as", the file extension is duplicated as
"Week20.pdf.pdf"
here is the relevant info:
<%
set directory=server.createobject("scripting.filesystemobject")
set allfiles=directory.getfolder(server.mappath("/MMM/Lesson/"))
' Lists all the files found in the directory
For each directoryfile in allFiles.files
%>
<a href=MMM/Lesson/ <%
' Write out the name of the document
response.write server.urlencode(directoryfile.name) %>><%
response.write directoryfile.name %>
</a>
This is how it turns up in the source of the published page"
<a href=MMM/Lesson/
Week20%2Epdf>Week20.pdf
</a>
The "%E2" is something I never noticed before.
does the code look right?
what about the duplicated extensions?