WEB/UpdateStudent.aspx

(完整代码) 1KB

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

<!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 AddStuInfo() {
            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>
    </table>
    </div>
        <asp:Button ID="btnAdd" runat="server" Text="添加"  Width="65px" OnClientClick="return CheckForm()" onclick="btnAdd_Click"/>
        <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="AddStuInfo()" />
    </form>
</body>
</html>

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

AI 解读 AI

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

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