choice2.asp

来自「本系统基于WEB」· ASP 代码 · 共 46 行

ASP
46
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>选报调剂页面|毕业设计选题系统</title>
</head>

<BODY leftMargin=0 topMargin=0 marginwidth="0">
  <!--#include file=../top.asp-->
  <!--#include file=top.asp-->
<%
Dim ID
ID = Request.QueryString("id")
Dim WORK
WORK = Request.QueryString("works")
Dim conn
Set conn=Server.CreateObject("ADODB.RecordSet")
conn.ActiveConnection = "DSN=hw;User ID=sa"
conn.Source = "select * from dbo.student where stu_id='"&id&"'"
conn.CursorType = 1
conn.LockType = 3
conn.Open()
      Dim conn2
      Set conn2=Server.CreateObject("ADODB.RecordSet")
        conn2.ActiveConnection = "DSN=hw;User ID=sa"
		conn2.Source = "update dbo.works set works_state= 3 where works_id='"&WORK&"'"
        conn2.CursorType = 1
        conn2.LockType = 3
        conn2.Open()
		conn.close()
		conn.Source = "update dbo.student set stu_works='"&WORK&"' where stu_id='"&ID&"'"
        conn.CursorType = 1
        conn.LockType = 3
		conn.Open()
%>
成功为 <% response.Write ID %> 选题,<a href="list.asp?list=8">点击这里返回未选题学生列表</a>
<%
	  Set conn2 = Nothing
Set conn = Nothing
%>
  <!--#include file=botton.asp-->
  <!--#include file=../botton.asp-->
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?