<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td colspan="3" bgcolor="#CCCCCC">
<%
Response.Write now
OpenFSO
OpenFile("1111-2222")
objFile.WriteLine(htmlHead)
objFile.WriteLine(htmlContent)
objFile.WriteLine(htmlFoot)
CloseFile
CloseFSO
Response.Write now
%>
</td>
</tr>
</table>
Simple enough, right? In the included file, I have:
.
.
.
Function OpenFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
End Function
Function OpenFile(id)
if len(id) < 1 then
id = "xxxx-yyyy"
end if
strFilename = "localtempchg_" & id & ".html"
objFile = objFSO.OpenTextFile(Server.MapPath(strFilename), fsoForWriting, True)
End Function
Function CloseFile
objFile.Close
Set objFile = Nothing
End Function
Function CloseFSO
objFSO.Close
Set objFSO = Nothing
End Function
.
.
.
Once hung, NOTHING is hosted correctly, AND I cannot stop the IIS service, I have to reboot.
Need to allow asp to create and write to a html file. I can do it in VB (application) but not in asp (apparently).
I have never done this before with asp, so any help is good help. (Aside from the "Help" I found on 4Guys)
(Edited by WebDevTool at 8:42 am on April 3, 2002)

New Topic/Question
Reply




MultiQuote




|