⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gchangp.asp

📁 本系统分两个子功能: 一:学生事务 统计学生的入学
💻 ASP
字号:
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成绩修改</title>
</head>

<body>
<%
sno=session("stuno")
if request.form("B1")<>"提交" then
cno=request.querystring("courseno")
 session("cno")=cno
 end if
%>
<table border="1" width="376" height="252">
   <form action="gchangp.asp" method="post">
	<tr>
		<td height="43" width="366" colspan="2">
		<p align="center"><b><font size="6">成绩修改</font></b></td>
	</tr>
	<tr>
		<td height="32" width="163">
		<p align="right">课程成绩</td>
		<td height="32" width="197"><input type="text" name="T2" size="20"></td>
	</tr>
	<tr>
		<td height="32" width="366" colspan="2">
		<p align="center">
		<input type="submit" value="提交" name="B1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" value="重置" name="B2"></td>
	</tr>
	</form>
	<%
	 
	 if request.form("B1")="提交"then
     dim conn,connstr
     connstr="Driver={sql server};UID=sa;PWD=sa;database=zikao;server=BILLGATES"
     set conn=server.createobject("ADODB.CONNECTION")
     conn.open connstr
     set rs=Server.CreateObject("ADODB.Recordset")
     cno=session("cno")
     sql="update grade set coursegrade= '"&request.form("T2")&"' where sno='"&sno&"' and courseno='"&cno&"'" 
     rs.open sql,conn
	%>
	<tr>
		<td height="90" width="366" colspan="2">
		 <%		  
		  response.write"修改成功"
		 %> 
		</td>
	</tr>
	<% end if%>
</table>

</body>

</html>

⌨️ 快捷键说明

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