bookadd.aspx

来自「这是一个很好的图书管理系统 数据库SQL2005」· ASPX 代码 · 共 62 行

ASPX
62
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookAdd.aspx.cs" Inherits="BookAdd" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
<div style="text-align: center">
         <table border="1" cellpadding="0" cellspacing="0" style="width: 600px; height: 260px">
                <tr>
                    <td colspan="2" style="width: 600px; height: 30px; background-color: silver;">
                         <span style="font-size: 18pt">图书信息管理系统--</span>添加图书信息</td>
                </tr>
                <tr>
                    <td style="height: 200px; width: 600px;" colspan="2">
        <table border="0" cellpadding="0" cellspacing="0" style="width: 550px; height: 175px">
            <tr>
                <td style="width: 150px; text-align: right;">
                    管理编号:</td>
                <td style="width: 400px; height: 35px; text-align: left;">
                    &nbsp; &nbsp;&nbsp;<asp:TextBox ID="txtManID" runat="server" MaxLength="12" Width="140px"></asp:TextBox><span style="color: red">*<asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtManID" ErrorMessage="该项不能为空"></asp:RequiredFieldValidator></span></td>
            </tr>
            <tr>
                <td style="width: 150px; text-align: right;">
                    图书名:</td>
                <td style="width: 400px; height: 35px; text-align: left;">
                    &nbsp; &nbsp;&nbsp;<asp:TextBox ID="txtBookName" runat="server" MaxLength="10" Width="140px"></asp:TextBox><span style="color: red">*<asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtBookName" ErrorMessage="该项不能为空"></asp:RequiredFieldValidator></span></td>
            </tr>
            <tr>
                <td style="width: 150px; text-align: right;">
                    作者:</td>
                <td style="width: 400px; height: 35px; text-align: left;">
                    &nbsp; &nbsp;&nbsp;<asp:TextBox ID="txtWriter" runat="server" MaxLength="16" Width="140px"></asp:TextBox><span style="color: red"></span></td>
            </tr>
            <tr>
                <td colspan="1" rowspan="2" style="width: 150px; height: 30px">
                </td>
                <td colspan="2" rowspan="2" style="width: 400px; height: 30px; text-align: left;">
                    &nbsp; &nbsp;<asp:Label ID="Label1" runat="server" ForeColor="Red">加*号为必填项目</asp:Label></td>
            </tr>
            <tr>
            </tr>
        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="width: 600px; height: 30px; background-color: gainsboro;">
                    <asp:Button ID="btn" runat="server" Text="提 交" Width="70px" OnClick="Button1_Click" />
                        &nbsp;&nbsp; &nbsp;<a href="BookMan.aspx">返回</a></td>
                </tr>
            </table>        
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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