ASP如何修改标题

如何更改呢?我看我的数据库里面有个该网页标题的。但只有一个网页有。就是下面这个网页
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="config.asp"-->
<!--#include file="system/ubb.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.hh {
cursor: hand;
}
-->
</style>
</head>
<body>

<%
call pagestart%>
<table width="755" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="255" height="159" valign="top" bgcolor="<%=c4%>">
<table width=255 border=0 cellspacing=0 cellpadding=0>
<tr>
<td width=21 height=22 align=center bgcolor=<%=c5%>><img src=images/mfk2.gif width=12 height=13></td>
<td width=110 bgcolor=<%=c5%>> 联 系 本 社</td>
<td width=91 bgcolor=<%=c5%>></td>
</tr></table><table width=255 border=0 cellspacing=0 cellpadding=0><tr><td height=1 bgcolor=<%=c1%>></td></tr></table>
<table width=255 border=0 cellspacing=0 cellpadding=0>
<tr><td height=4></td></tr></table>

<table width=255 border=0 cellspacing=0 cellpadding=0>
<%
qq1="select id,fax,address,qq,email,dianhua,people,zhongzhi,jianjie from master where id=1"
set qqrs=conn.execute(qq1)
%>
<tr><td align=center width=15 height=22>
<%
response.write("<table width=222 border=0 cellpadding=0 cellspacing=0><tr><td width=56 height=18 align=center>电话:</td>")
response.write("<td width=166>"&msgg(qqrs("dianhua"))&"</td></tr><tr><td height=18 align=center>传真:</td><td>"&msgg(qqrs("fax"))&"</td>")
response.write("</tr><tr><td height=18 align=center>地址:</td><td>"&msgg(qqrs("address"))&"</td></tr><tr><td height=18 align=center>Email:</td>")
response.write("<td>"&msgg(qqrs("email"))&"</td></tr><tr><td height=18 align=center>在线QQ:</td><td>"&msgg(qqrs("qq"))&"</td></tr></table>")
response.write("<table width='222' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td height='5'></td></tr></table>")%>
</td></tr></table>
<table width=255 border=0 cellspacing=0 cellpadding=0>
<tr><td height=4></td></table></td><td valign=top bgcolor=f7f5e8><table width="100%" border="0" align="center" valign=top cellpadding="0" cellspacing="0">
<tr>
<td height="25" align="right" bgcolor="<%=c2%>">感 谢 你 对 本 社 的 支 持!!!</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="<%=c1%>"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<td><%=ubbcode(qqrs("jianjie"))%></td>
这个是CONFIG.asp里面的前几行。我怎么把别的网页也弄上标题?
希望大家帮帮我。可以有常的!
<!--#include file="conn.asp"-->
<%
sub rsclose(rsname)
closers(rsname)
end sub

sub connclose
closeconn
end sub

colorset="select * from setguestbook where id=2"
set rscolor=conn.execute(colorset)
color1=rscolor("s1")
color2=rscolor("s2")
color3=rscolor("s3")
color4=rscolor("s4")
title=rscolor("s5")
pagesize=rscolor("s6")

config.asp
你找找有没有
title="" 之类的 标题在那里

下面是标题输出的地方

把下面的这行 复制 其它页面有<title>的地方
如果没有电话 放到<head>之间就行了!
<title><%=title%></title>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2009-01-05
我看了你的代码。。
CONFIG.asp这个文件里面有了啊

title=rscolor("s5")
读取的是你 数据库中 表setguestbook 里面 S5的值

这个就是定义的一个值的麻。。

你的其他页面 TITLE 也应该这样写:<title><%=title%></title>
第2个回答  2009-01-04
你在Config.asp在下面添加一行
title = "你的网站名称"
绝对管用!
第3个回答  2009-01-03
一楼的很对,但有些人会把配置文件里到数据库中
相似回答