标题:ASP新闻管理前台显示问题
只看楼主
t251826667
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2011-6-9
 问题点数:0 回复次数:0 
ASP新闻管理前台显示问题
我做了个新闻发布的后台,添加完新闻后,标题什么显示的都正确,可是点击标题进入新闻详细页的时候。显示的却是第一条发布的新闻内容。点击哪个标题,都是显示第一个内容。自己琢磨了一天了。求大家帮帮我吧!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
  If condition = "" Then
    MM_IIf = ifFalse
  Else
    MM_IIf = ifTrue
  End If
End Function
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject (")
Recordset1_cmd.ActiveConnection = MM_conn_STRING
Recordset1_ = "SELECT * FROM dbo.News_biao"
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>齐齐哈尔大学勤工助学服务中心</title>
<link href="css/globla.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="all">
  <div class="head">
    <div class="top">
      <div class="top_one"><img src="images/logo.gif" width="123" height="124" alt="齐齐哈尔大学"/></div>
      <div class="top_two"><img src="images/font.gif" /></div>
    </div>
    <div class="h"></div>
    <div class="nav">
      <div class="left"></div>
      <div class="right"></div>
      <div class="middle">
        <ul>
          <li><a href="" target="_self">首页</a></li>
          <li><a href="" target="_self">关于我们</a></li>
          <li><a href="" target="_self">中心章程</a></li>
          <li><a href="" target="_self">中心成员</a></li>
          <li><a href="" target="_self">助学活动</a></li>
          <li><a href="" target="_self">报名须知</a></li>
          <li><a href="" target="_self">联系我们</a></li>
        </ul>
      </div>
    </div></div>
</div></div>

<table width="100%" border="0" cellspacing="0" cellpadding="6">
  <tr>
    <td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
  </tr>
  <tr>
    <td align="center">发布时间<%=(Recordset1.Fields.Item("tjtime").Value)%>点击次数  <%=(Recordset1.Fields.Item("djs").Value)%></td>
  </tr>
  <tr>
    <td><%=(Recordset1.Fields.Item("nr").Value)%></td>
  </tr>
</table>

</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

2011-06-09 19:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-342337-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.050652 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved