📄 wz.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
if(Request.QueryString("ID") <> "") then Command1__ddd = Request.QueryString("ID")
%>
<%
Dim wz__MMColParam
wz__MMColParam = "1"
If (Request.QueryString("ID") <> "") Then
wz__MMColParam = Request.QueryString("ID")
End If
%>
<%
Dim wz
Dim wz_numRows
Set wz = Server.CreateObject("ADODB.Recordset")
wz.ActiveConnection = MM_conn_STRING
wz.Source = "SELECT * FROM WenZhang WHERE ID = " + Replace(wz__MMColParam, "'", "''") + ""
wz.CursorType = 0
wz.CursorLocation = 2
wz.LockType = 1
wz.Open()
wz_numRows = 0
%>
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_conn_STRING
Command1.CommandText = "UPDATE WenZhang SET View = View + 1 WHERE ID = " + Replace(Command1__ddd, "'", "''") + ""
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoWhiteSpace(str)
DoWhiteSpace = Replace((Replace(str, vbCrlf, "<br>")), chr(32)&chr(32), " ")
End Function
</SCRIPT>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>
<body>
<div align="center">
<h2><%=(wz.Fields.Item("BiaoTi").Value)%></h2>
<p align="left"><%=DoWhiteSpace(wz.Fields.Item("NeiRong").Value)%>
</p>
<p align="right" class="style1"><%=(wz.Fields.Item("View").Value)%> </p>
</div>
</body>
</html>
<%
wz.Close()
Set wz = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -