温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:个人图书管理系统源码
当前文件路径:MyLibary/BookManage/BookAdd.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookAdd.aspx.cs" Inherits="BookManage_BookAdd" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
<script language="javascript" type="text/javascript"> 9
<!-- 10
11
function TABLE1_onclick() { 12
13
} 14
15
// --> 16
</script> 17
</head> 18
<body> 19
<form id="form1" runat="server"> 20
<div> 21
<table style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " width="400" border="1" borderColor="#2c6ed5" cellspacing="0" cellpadding="0" align="center" id="TABLE1" language="javascript" onclick="return TABLE1_onclick()"> 22
<tr> 23
<td align="center" colspan=2> 24
<FONT size="5" face="隶书">添加图书</FONT> 25
</td> 26
</tr> 27
28
<tr> 29
<td> 30
书名: 31
</td> 32
<td> 33
<asp:TextBox id="txtName" runat="server" Width="193px"></asp:TextBox>* 34
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator> 35
</td> 36
</tr> 37
<tr> 38
<td> 39
ISBN号: 40
</td> 41
<td > 42
<asp:TextBox id="txtISBN" runat="server" Width="192px"></asp:TextBox>* 43
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtISBN"></asp:RequiredFieldValidator><BR> 44
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="\d{1,}\-\d{1,}\-\d{1,}\-\d{1,}" ControlToValidate="txtISBN"></asp:RegularExpressionValidator></td> 45
</tr> 46
<tr> 47
<td> 48
作者名: 49
</td> 50
<td> 51
<asp:TextBox id="txtAuthor" runat="server" Width="192px"></asp:TextBox>* 52
<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtAuthor"></asp:RequiredFieldValidator></td> 53
</tr> 54
<tr> 55
<td> 56
出版社: 57
</td> 58
<td> 59
<asp:TextBox id="txtPublish" runat="server" Width="192px"></asp:TextBox>* 60
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPublish"></asp:RequiredFieldValidator></td> 61
</tr> 62
<tr> 63
<td> 64
出版时间: 65
</td> 66
<td> 67
<asp:DropDownList ID="ddlYear" runat="server"> 68
</asp:DropDownList>年 69
<asp:DropDownList ID="ddlMonth" runat="server"> 70
</asp:DropDownList>月 71
<asp:DropDownList ID="ddlDay" runat="server"> 72
</asp:DropDownList>日</td> 73
</tr> 74
<tr> 75
<td> 76
图书类型: 77
</td> 78
<td> 79
<asp:RadioButtonList ID="rblClassify" runat="server" Font-Size="9pt" RepeatDirection="Horizontal"> 80
<asp:ListItem Value="2" Selected="True">中文图书</asp:ListItem> 81
<asp:ListItem Value="3">西文图书</asp:ListItem> 82
<asp:ListItem Value="4">中文期刊</asp:ListItem> 83
<asp:ListItem Value="5">西文期刊</asp:ListItem> 84
</asp:RadioButtonList></td> 85
</tr> 86
<tr> 87
<td> 88
主题词: 89
</td> 90
<td > 91
<asp:TextBox id="txtSubject" runat="server" Width="192px"></asp:TextBox>* 92
<asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="txtSubject" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td> 93
</tr> 94
<tr> 95
<td> 96
索取号: 97
</td> 98
<td> 99
<asp:TextBox id="txtIndex" runat="server" Width="192px"></asp:TextBox>* 100
<asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ControlToValidate="txtIndex" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td> 101
</tr> 102
<tr> 103
<td> 104
定价(元): 105
</td> 106
<td> 107
<asp:TextBox id="txtPrice" runat="server" Width="192px"></asp:TextBox>* 108
<asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPrice"></asp:RequiredFieldValidator><BR> 109
<asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="(\d{1,}\.\d*)|(\d{1,})" ControlToValidate="txtPrice"></asp:RegularExpressionValidator></td> 110
</tr> 111
<tr> 112
<td> 113
页数: 114
</td> 115
<td> 116
<asp:TextBox id="txtPageNum" runat="server" Width="192px"></asp:TextBox>* 117
<asp:RequiredFieldValidator id="RequiredFieldValidator8" runat="server" ControlToValidate="txtPageNum" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td> 118
</tr> 119
<tr> 120
<td> 121
从书名: 122
</td> 123
<td> 124
<asp:TextBox id="txtSeries" runat="server" Width="190px"></asp:TextBox></td> 125
126
</tr> 127
<tr> 128
<td> 129
说明: 130
</td> 131
<td> 132
<asp:TextBox id="txtDescription" runat="server" Width="203px" TextMode="MultiLine" Height="64px"></asp:TextBox> 133
</td> 134
135
</tr> 136
137
138
<tr> 139
<td colspan=2 align=center> 140
<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br /> 141
<asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="ImageButton1_Click" /> 142
143
<asp:ImageButton ID="imgBtnReturn" runat="server" ImageUrl="~/Images/RETURN.GIF" /></td> 144
</tr> 145
</table> 146
</div> 147
</form> 148
</body> 149
</html> 150






}
