![]() |
error on header.asp |
Post Reply ![]() |
Author | |
mike17 ![]() Newbie ![]() Joined: 09-August-2012 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 02-October-2012 at 4:35pm |
Hi there, I uploaded the following code on header.asp to get the keywords geenrated by product cart.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--#include file="include-metatags.asp"--> <html> <head> <%if pcv_PageName<>"" then%> <title><%=pcv_PageName%></title> <%end if%> <%GenerateMetaTags()%> <%Response.Buffer=True%> <% Set conlayout=Server.CreateObject("ADODB.Connection") conlayout.Open scDSN Set RSlayout = conlayout.Execute("Select * From layout Where layout.ID=2") Set rsIconObj = conlayout.Execute("Select * From icons WHERE id=1") %> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="pcStorefront.css" /> <!--#include file="inc_header.asp" --> </head> Microsoft VBScript compilation error '800a0411' Name redefined /NCFstore/pc/inc_header.asp, line 2 private const scIncHeader="1" --------------^Can you please help ? |
|
![]() |
|
Guests ![]() Guest ![]() |
![]() ![]() ![]() ![]() ![]() |
Hi Mike,
This means that inc_header.asp is included more than once. Your code snippet shows it once (in the correct location). So, either it's included again in header.asp, or it's included in the core file (e.g. home.asp). You need to find the other inclusion of inc_header.asp and remove it.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |