落伍者站长论坛's Archiver

吉小醉一木 发表于 2008-7-25 11:27

asp程序中显示动态标题

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>深圳市费思泰克科技有限公司</title>




打算调用新闻动态标题,新闻标题:<%=rs("n_title")%>

求助怎么实现动态标题  谢谢

唐尸三摆手 发表于 2008-7-25 15:52

<html>
<head>
<title> <%=rs("title")%></title>
</head>
<body>
...
</body>
</html>

其中 rs("title") 是从数据库取出的动态数据

baiducode 发表于 2008-7-25 17:35

看你用的什么程序,程序一般都自带的有标签说明,你把标签放对位置就行了!

pxczy 发表于 2008-7-25 21:35

你都写出来了,还用问吗:o

rs("title") 是从数据库取出的动态数据

sql="select * from news"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sqlClass,conn,1,1
<title><%=rs("title")%></title>

是这样吧

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.