网络考场(12)(转)teditsub.asp

发表于:2007-06-30来源:作者:点击数: 标签:
%@ Language= VB Script % HTML HEAD META NAME=GENERATOR Content=Microsoft Visual Studio 6.0 /HEAD BODY PINPUT id=submit1 name=submit1 type=submit value=Submit disabled=false/P % set mcomd=server.CreateObject(adodb.command) mcomd.ActiveConnec
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P><INPUT id=submit1 name=submit1 type=submit value=Submit disabled=false></P>
<%
set mcomd=server.CreateObject("adodb.command")
mcomd.ActiveConnection="dsn=testsys"
mcomd.CommandText="qname"
set mprama=mcomd.CreateParameter("paratesttime",3,2,4)

‘’set mprama=mcomd.CreateParameter("strname",8,1,10,"历史")
mcomd.Parameters.Append mprama
set mrs=mcomd.Execute
while not mrs.bof
    Response.Write mcomd.Parameters("paratesttime")
    ‘’Response.Write mrs("sub") & "<br>"
    ‘’Response.Write mrs("testtime") & "<br>"
    ‘’Response.Write mrs("testnum") & "<br>"
    mrs.movenext
wend
Response.Write "kkkk"
set mcomd=nothing
%>
</BODY>
</HTML>

原文转自:http://www.ltesting.net