Problem med script..
Hej.. Når jeg køre følgende script på min iis server så virker det fint.. men hvis det køre på en anden server, (der hvor min hp bliver hosted) så får jeg følgende fejl..\"Response object error \'ASP 0156 : 80004005\'
Header Error
/show.asp, line 6
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. \"
Mit script er:
<!--#include file=\"common.asp\" -->
<html>
<head>
<title>Galleri</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"arf.css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<%
Response.Buffer = True
%>
<%
NumSeconds = Request(\"Time\")
thisFolder = Request(\"Folder\")
Index = CInt(Request(\"Index\"))
myTextPath = myFolder & \"\\\" & thisFolder & \"\\\" & myTextFile
Set objNextLink = Server.CreateObject(\"MSWC.NextLink\")
TotalItems = objNextLink.GetListCount(myFolder & \"\\\" & thisFolder & \"\\\" & myTextFile)
%>
<%
If NumSeconds <> \"None\" Then
If Index = TotalItems Then
Response.Write(\"<META HTTP-EQUIV=\"\"Refresh\"\" CONTENT=\"\"\" & NumSeconds & \";URL=list.asp?Folder=\" & thisFolder & \"\"\">\")
Else
Response.Write(\"<META HTTP-EQUIV=\"\"Refresh\"\" CONTENT=\"\"\" & NumSeconds _
& \";URL=show.asp?Index=\" & Index + 1 & \"&Folder=\" _
& thisFolder & \"&Time=\" & NumSeconds & \"\"\">\")
End If
End If
%>
<body bgcolor=\"#ffffff\" TOPMARGIN=\"0\" LEFTMARGIN=\"0\" MARGINWIDTH=\"0\" MARGINHEIGHT=\"0\">
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
<tr bgcolor=\"#5D7484\">
<td align=\"left\" valign=\"top\"> <%
If Index > 1 Then
Response.Write(\"<a href=\"\"show.asp?Index=\" & Index - 1 & \"&Folder=\" _
& thisFolder & \"&Time=\" & NumSeconds & \"\"\">\" & \"Sidste Billede</a>\")
Else
Response.Write(\" \")
End If
%> </td>
<td align=\"center\" valign=\"top\"><a href=\"list.asp?Folder=<%=thisFolder%>\">Indhold</a>
<%
Response.Write(\" [\" & Index & \"/\" & TotalItems & \"]\")
%> </td>
<td align=\"right\" valign=\"top\"> <%
If Index >= 1 Then
If Index < TotalItems Then
Response.Write(\"<a href=\"\"show.asp?Index=\" & Index + 1 & \"&Folder=\" _
& thisFolder & \"&Time=\" & NumSeconds & \"\"\">\" & \"Næste Billede</a>\")
Else
Response.Write(\" \")
End If
Else
Response.Write(\" \")
End If
%> </td>
</tr>
</table>
<br>
<div align=\"center\">
<%
picWholeDescription = objNextLink.GetNthDescription(myTextPath, Index)
If InStr(picWholeDescription, mySeparator) Then
picPositionSeparator = InStr(1, picWholeDescription, mySeparator)
picTitle = Left(picWholeDescription, picPositionSeparator - 1)
picDescription = Mid(picWholeDescription, picPositionSeparator + 5)
Else
picTitle = picWholeDescription
picDescription = \"\"
End If
Response.Write(\"<span style=\"\"color: #330099; font-weight: bold; font-family: Arial, Helvetica\"\">\" _
& picTitle & \"</span><br><br>\" _
& \"<img src=\"\"\" & myFolder & \"\\\" & thisFolder & \"\\\" _
& objNextLink.GetNthURL(myFolder & \"\\\" & thisFolder & \"\\\" & myTextFile, Index) _
& \"\"\" border=\"\"1\"\"><br><br>\" & picDescription)
Set objNextLink = Nothing
%>
</div>
