asp中如何使网页标题自动调用文章标题或产品名称
我的标题全部在TOP.asp文件中,如何使产品名称与新闻标题也自动显示在<title><%=WebTitle%></title>这个标题前面<head><metahttp...
我的标题全部在TOP.asp文件中,如何使产品名称与新闻标题也自动显示在<title><%=WebTitle%></title>这个标题前面
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#include file="Inc/Conn.asp"-->
<meta name="<%=Webdescription%>" content="description" />
<meta name="<%=Webkeywords%>" content="keywords" />
<title><%=WebTitle%></title>
<link href="Css/Style.Css" rel="stylesheet" type="text/css" />
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
读取出来赋值,请高手指点,倒底如何读取,如何赋值,代码是怎么样的,并要放在个文件中,是TOP.asp中,还是product.asp中,<!--#include file="Top.Asp"-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="171" valign="top"><!--#include file="Left.Asp"--></td>
<td valign="top"><table width="832" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" background="Index/dh.gif" class="Main_Title"><%=dh%></td>
</tr>
<tr>
<td height="230" valign="top" class="Main_Cont"><%
If Id="" Then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
Prosel=Request.Form("Prosel")
Search=Request.Form("Search")
If Search<>"" Then
if Prosel<>"所有栏目" then
add="BigClassName='"&Prosel&"' Or SmallClassName='"&Prosel&"' And "
else
add=""
end if
sql="select * from P_Product Where "&add&" Title like '%"&Search&"%'" 展开
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#include file="Inc/Conn.asp"-->
<meta name="<%=Webdescription%>" content="description" />
<meta name="<%=Webkeywords%>" content="keywords" />
<title><%=WebTitle%></title>
<link href="Css/Style.Css" rel="stylesheet" type="text/css" />
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
读取出来赋值,请高手指点,倒底如何读取,如何赋值,代码是怎么样的,并要放在个文件中,是TOP.asp中,还是product.asp中,<!--#include file="Top.Asp"-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="171" valign="top"><!--#include file="Left.Asp"--></td>
<td valign="top"><table width="832" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="35" background="Index/dh.gif" class="Main_Title"><%=dh%></td>
</tr>
<tr>
<td height="230" valign="top" class="Main_Cont"><%
If Id="" Then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
Prosel=Request.Form("Prosel")
Search=Request.Form("Search")
If Search<>"" Then
if Prosel<>"所有栏目" then
add="BigClassName='"&Prosel&"' Or SmallClassName='"&Prosel&"' And "
else
add=""
end if
sql="select * from P_Product Where "&add&" Title like '%"&Search&"%'" 展开
2个回答
展开全部
所有的程序代码,都是从头执行到尾的,变量的作用范围,只在后半部分,所以你要把读取的代码,放在top.asp 上面,然后,再给予标题付值
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询