Response.redirect
Hej jeg har dette script:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Ny side 2</title>
</head>
<body>
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.MapPath("scart.mdb")
SQLstmt = "UPDATE DISTINCTROW products SET cname = '" & request.form("cname") & "',cdescription = '" & request.form("cdescription") & "',cprice = '" & request.form("cprice") & "',Grosist = '" & request.form("Grosist") & "' WHERE catalogID = " & request.form("catalogID1")
Conn.Execute (SQLstmt)
conn.Close
Set conn = nothing
Set SQLstmt = nothing
response.redirect ("skod.asp")
%>
</body>
</html>
Men jeg får denne fejl:
Response object error 'ASP 0156 : 80004005'
Header Error
/data/admin/gem_ret_data.asp, line 31
The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.
Jeg forstår ikke hvad der går galt... HJÆLP!
