I have an ASP that calls a COM object that creates a document. I store the
document on the web server. I pass the COM object a physical path (i.e. c:\inetput\wwwroot\output).
The COM then passes me the same path with the file name appended.
I use the following line to display the file on a page:
<meta http-equiv="refresh" content="2;URL=<%=Path%>">
This works on my localhost but when I move it to the server the page just
keeps refreshing. I think that maybe it is because path that I am putting
in the URL is a physical path. Do I need to convert the physical path to
a virtual path? If so, how do I do this?
This is the code for the entire page:
<%@ Language=VBScript %>
FileType = Request.QueryString("filetype")
CartID = Request.QueryString("cartid")
dim obj, Path
Path = server.MapPath("/sfiqa/output")
set obj = server.CreateObject("SfiOutput.clsOutput")
Path = obj.Create("1", CStr(CartID), CStr(Path), CStr(FileType))
Response.Write "<meta http-equiv=""refresh"" content=""2;URL=" & Path & """>"
Can anyone help?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL