WEB/UpdateTeacher.aspx

(完整代码) 2KB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateTeacher.aspx.cs" Inherits="WEB.UpdateTeacher" %>

<!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 runat="server">
     <title>教师信息修改</title>
    <script type="text/javascript">
         function AddTeacher() {
                window.close();
            }
         function CheckForm() {
            if (document.getElementById("txtNmae").value == "") {
                alert("姓名不能为空!")
                return false;
            }
            if (document.getElementById("txtPwd").value == "") {
                alert("密码不能为空!")
                return false;
            }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table>
            <tr>
                <td>教师姓名:</td>
                <td><asp:TextBox ID="txtNmae" runat="server"></asp:TextBox></td>
            </tr>
            
            <tr>
                <td>教师密码:</td>
                <td><asp:TextBox ID="txtPwd" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>所教科目:</td>
                <td><asp:TextBox ID="txtGread" runat="server"></asp:TextBox></td>
            </tr>
           <%-- <tr>
                <td>学生姓名:</td>
                <td><asp:TextBox ID="txtStuName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>学生分数:</td>
                <td><asp:TextBox ID="txtScore" runat="server"></asp:TextBox></td>
            </tr>--%>
    </table>
    </div>
        <asp:Button ID="btnUpdate" runat="server" Text="修改" Width="65px" 
        OnClientClick="return CheckForm()" onclick="btnUpdate_Click" />
        <asp:Button ID="btnEsc" runat="server" Text="返回" Width="65px" OnClientClick="AddTeacher()" />
    </form>
</body>

</html>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。