温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:我的小书坊源码(三层实现)
当前文件:
MyBookShop/BookAdd.aspx,打开代码结构图
MyBookShop/BookAdd.aspx,打开代码结构图1<%@ Page Language="c#" Inherits="MyBookShop.Web.BookAdd" CodeFile="BookAdd.aspx.cs" %> 2
3
<%@ Register TagPrefix="MyBookShop" TagName="HeaderMenu" Src="UserControls/HeaderMenu.ascx" %> 4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5
<html xmlns="http://www.w3.org/1999/xhtml"> 6
<head id="Head1" runat="server"> 7
<title>添加图书</title> 8
<link href="Styles/style.css" rel="stylesheet" type="text/css" /> 9
</head> 10
<body> 11
<form id="Form1" method="post" enctype="multipart/form-data" runat="server"> 12
<table id="Table1" style="z-index: 101; left: 8px; width: 504px; position: absolute; 13
top: 8px; height: 288px" cellspacing="0" cellpadding="0" width="504" border="0"> 14
<tr> 15
<td align="center" colspan="2"> 16
<MyBookShop:HeaderMenu ID="headerMenu" runat="server"></MyBookShop:HeaderMenu> 17
</td> 18
</tr> 19
<tr> 20
<td colspan="2"> 21
>>添加图书 22
<hr /> 23
</td> 24
</tr> 25
<tr> 26
<td style="width: 90px"> 27
图书名*</td> 28
<td style="width: 232px"> 29
<asp:TextBox ID="TextBoxBookName" runat="server" Width="120px"></asp:TextBox></td> 30
</tr> 31
<tr> 32
<td style="width: 90px"> 33
类别*</td> 34
<td style="width: 232px"> 35
<asp:DropDownList ID="DropDownListCategory" runat="server"> 36
</asp:DropDownList></td> 37
</tr> 38
<tr> 39
<td style="width: 90px"> 40
价格*</td> 41
<td style="width: 232px"> 42
<asp:TextBox ID="TextBoxPrice" runat="server" Width="80px"></asp:TextBox>元</td> 43
</tr> 44
<tr> 45
<td style="width: 90px"> 46
出版社*</td> 47
<td style="width: 232px"> 48
<asp:TextBox ID="TextBoxPublisher" runat="server" Width="192px"></asp:TextBox></td> 49
</tr> 50
<tr> 51
<td style="width: 90px"> 52
出版日期*</td> 53
<td colspan="2"> 54
<asp:TextBox ID="TextBoxPublishDate" runat="server" Width="110px"></asp:TextBox>(例如:2006-07-01)</td> 55
</tr> 56
<tr> 57
<td style="width: 90px"> 58
作者*</td> 59
<td style="width: 232px"> 60
<asp:TextBox ID="TextBoxAuthor" runat="server" Width="112px"></asp:TextBox></td> 61
</tr> 62
<tr> 63
<td style="width: 90px"> 64
页数*</td> 65
<td style="width: 232px"> 66
<asp:TextBox ID="TextBoxPageNum" runat="server" Width="48px"></asp:TextBox></td> 67
</tr> 68
<tr> 69
<td style="width: 90px"> 70
简介</td> 71
<td style="width: 232px"> 72
<asp:TextBox ID="TextBoxDescription" runat="server" Width="352px" TextMode="MultiLine" 73
Height="56px"></asp:TextBox></td> 74
</tr> 75
<tr> 76
<td style="width: 90px"> 77
上传图片</td> 78
<td style="width: 232px"> 79
<input id="InputPictureFile" style="width: 344px; height: 19px" type="file" size="38" 80
runat="server" /></td> 81
</tr> 82
<tr> 83
<td align="center" colspan="3"> 84
<hr /> 85
<asp:Button ID="ButtonOK" runat="server" Width="56px" Text="提交" OnClick="ButtonOK_Click"> 86
</asp:Button></td> 87
</tr> 88
<tr> 89
<td align="center" colspan="3"> 90
<asp:Label ID="LabelWarningMessage" runat="server"></asp:Label></td> 91
</tr> 92
</table> 93
</form> 94
</body> 95
</html> 96



