📄 btypemodify.aspx
字号:
<%@ Page Language="VB" ContentType="text/html" %>
<%@ Import Namespace="system.data" %>
<%@ Import Namespace="system.data.oledb" %>
<!--#include file="ckqx.aspx" -->
<html>
<head>
<title>修改部门信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../CSS.CSS" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#CCCCCC">
<form runat="server">
<table width="549" height="24" border="0" cellpadding="0" cellspacing="0" background="../pic/002.png">
<tr>
<td><font color="#FFFFFF"><strong> 修改部门信息</strong></font></td>
</tr>
</table>
<table width="549" height="400" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#008080" bordercolordark="#FFFFFF">
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table align="center">
<tr valign="baseline">
<td nowrap align="right">部门名称:</td>
<td><asp:textbox BorderStyle="solid" BorderWidth="1" Font-Size="10" ID="zbtype" runat="server" TextMode="SingleLine" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><asp:button Font-Size="10" ID="zmodi" runat="server" Text="更改" OnClick="zscmodi" /> </td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
<script language="VB" runat="server">
sub page_load(s as object,e as eventargs)
if not ispostback then
if not (checkqx("a")) then response.redirect("error.aspx")
bindlist()
end if
end sub
sub bindlist()
dim conn as new oledbconnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & server.MapPath("../office.mdb"))
conn.open()
dim objcmd as new oledbcommand("select btype from btype where id=" & request.QueryString("id"),conn)
dim objrd as oledbdatareader=objcmd.executereader()
if objrd.read() then
zbtype.text=objrd.item("btype")
else
response.Redirect("editbtype.aspx")
end if
conn.close()
end sub
sub zscmodi(s as object,e as eventargs)
dim conn as new oledbconnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & server.MapPath("../office.mdb"))
conn.open()
dim objcmd as new oledbcommand("update btype set btype=? where id=" & request.QueryString("id"),conn)
objcmd.parameters.add("@btype",oledbtype.char).value=zbtype.text
objcmd.executenonquery()
conn.close()
response.Redirect("editbtype.aspx")
end sub
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -