当前位置:编程学习 > asp >>

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

答案:<%@ 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>

上一个:网络考场(11)(转)teditquestion.asp
下一个:网络考场(13)(转)testtop.asp

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,