asp如何把网页标题设成文章名

我的代码如下:<!--#includefile="datebase.asp"--><head><metahttp-equiv="Content-Type"content=... 我的代码如下:
<!--#include file="datebase.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>

</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>

</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
展开
 我来答
百度网友1193bb8f7b
2011-01-02 · TA获得超过194个赞
知道小有建树答主
回答量:224
采纳率:0%
帮助的人:278万
展开全部
<!--#include file="datebase.asp"-->
<%
dim id
id=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where articleid="&id
rs.open sql,conn,1,1
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
<% if not rs.eof then
reponse.write rs("标题字段名")
end if
%>我要这里显示文章的标题</title>
<meta name="Keywords" content="XXX网站" />
<meta name="Description" content="XXX网站" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function killErrors()
{
return true;
}
window.onerror = killErrors;
</script>
</head>
<body>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"-->
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" valign="top"><!--#include file="left.asp"--></td>
<td width="745" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td>

<% if not rs.eof then
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="images/list_logo.jpg" width="32" height="25" /></td>
<td width="94%" class="title2"><strong><%= rs("cpfl2") %></strong></td>
</tr>
<tr>
<td colspan="2"><img src="images/xian2.jpg" width="700" height="4" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="29" align="center" class="txt2"><b><%= rs("title") %></b></td>
</tr>
<tr>
<td height="40" class="txt1">出处:<%= rs("ly") %> 作者:<%=rs("zuozhe") %> 编辑:<%= rs("cbr") %> 时间:<%=rs("dateandtime") %></td>
</tr>
<tr>
<td class="txt2"><%= rs("content") %></td>
</tr>

</table></td>
</tr>
<tr>
<td height="174" align="center" valign="bottom"><a href="#" class="a9" onClick="history.back();return false;">[返回]</a></td>
</tr>
</table>
<p>
<%
end if
rs.close
set rs=nothing
%>
</td>
</tr>

</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式