yns_tarea.asp
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:1k
源码类别:

电子政务应用

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT"%> 
  2. <!--#include file="Connections/conn_news.asp" --> <% '请尊重作者劳动成果不要删除以上信息 '业一新闻系统3.0正式版 '主页:http://yeyi.net '论坛:http://bbs.yeyi.net '业一网络 承接各种网站制作 '程序开发 软件开发业务 '业务联系 '电话: 13007310512 '联系人:郝亚平 'QQ:24344842 (只谈业务,技术问题请访问论坛) '请尊重作者劳动成果不要删除以上信息 %>
  3. <html>
  4. <head>
  5. <title></title>
  6. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  7. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <LINK href=site.css rel=stylesheet>
  9. </head>
  10. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  11. <%
  12. If request("action")="modify" Then
  13. Dim rs__MMColParam
  14. rs__MMColParam = "1"
  15. If (Request.QueryString("n_id") <> "") Then 
  16.   rs__MMColParam = Request.QueryString("n_id")
  17. End If
  18. %>
  19. <%
  20. Dim rs
  21. Dim rs_numRows
  22. Set rs = Server.CreateObject("ADODB.Recordset")
  23. rs.ActiveConnection = MM_conn_news_STRING
  24. rs.Source = "SELECT * FROM t_news WHERE n_id = " + Replace(rs__MMColParam, "'", "''") + ""
  25. rs.CursorType = 0
  26. rs.CursorLocation = 2
  27. rs.LockType = 1
  28. rs.Open()
  29. rs_numRows = 0
  30. %>
  31. <% If Not rs.EOF Or Not rs.BOF Then %>
  32. <%=(rs.Fields.Item("n_content").Value)%> 
  33. <% End If ' end Not rs.EOF Or NOT rs.BOF %>
  34. <%
  35. rs.Close()
  36. Set rs = Nothing
  37. %>
  38. <% End If %>
  39. </body>
  40. </html>