AddBook1.aspx
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:6k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" MasterPageFile="~/SysAdmin/sysAdminMasterPage.master" AutoEventWireup="true" CodeFile="AddBook.aspx.cs" Inherits="SysAdmin_AddBook" Title="Untitled Page" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  3.     <div>
  4.     <table style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse; " width="400" border="1" borderColor="#2c6ed5" cellspacing="0" cellpadding="0" align="left
  5.     " id="TABLE1" language="javascript" onclick="return TABLE1_onclick()">
  6. <tr>
  7. <td align="center" colspan="2">
  8. <FONT size="5" face="隶书">添加图书</FONT>
  9. </td>
  10. </tr>
  11. <tr>
  12. <td>
  13. ISBN号:
  14. </td>
  15. <td >
  16. <asp:TextBox id="txtISBN" runat="server" Width="192px"></asp:TextBox>*
  17. <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtISBN"></asp:RequiredFieldValidator><BR>
  18. <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="d{1,}-d{1,}-d{1,}-d{1,}" ControlToValidate="txtISBN"></asp:RegularExpressionValidator></td>
  19. </tr>
  20. <tr>
  21. <td>
  22. 书名:
  23. </td>
  24. <td>
  25. <asp:TextBox id="txtName" runat="server" Width="193px"></asp:TextBox>*
  26. <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td style="height: 23px">
  31. 索取号:
  32. </td>
  33. <td style="height: 23px">
  34. <asp:TextBox id="txtIndex" runat="server" Width="192px"></asp:TextBox>*
  35. <asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ControlToValidate="txtIndex" ErrorMessage="此项不能为空"></asp:RequiredFieldValidator></td>
  36. </tr>
  37. <tr>
  38. <td>
  39. 图书类型:
  40. </td>
  41. <td>
  42.                                         <asp:RadioButtonList ID="rblClassify" runat="server" Font-Size="9pt" RepeatDirection="Horizontal">
  43.                                             <asp:ListItem Value="0" Selected="True">社会科学</asp:ListItem>
  44.                                             <asp:ListItem Value="1">自然科学</asp:ListItem>
  45.                                             <asp:ListItem Value="2">综合性图书</asp:ListItem>
  46.                                             <asp:ListItem Value="3">哲学</asp:ListItem>
  47.                                         </asp:RadioButtonList></td>
  48. </tr>
  49. <tr>
  50. <td>
  51. 作者名:
  52. </td>
  53. <td>
  54. <asp:TextBox id="txtAuthor" runat="server" Width="192px"></asp:TextBox>*
  55. <asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtAuthor"></asp:RequiredFieldValidator></td>
  56. </tr>
  57. <tr>
  58. <td>
  59. 出版社:
  60. </td>
  61. <td>
  62. <asp:TextBox id="txtPublish" runat="server" Width="192px"></asp:TextBox>*
  63. <asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPublish"></asp:RequiredFieldValidator></td>
  64. </tr>
  65. <tr>
  66. <td>
  67. 定价(元):
  68. </td>
  69. <td>
  70. <asp:TextBox id="txtPrice" runat="server" Width="192px"></asp:TextBox>*
  71. <asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ErrorMessage="此项不能为空" ControlToValidate="txtPrice"></asp:RequiredFieldValidator><BR>
  72. <asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ErrorMessage="输入有误,请重输" ValidationExpression="(d{1,}.d*)|(d{1,})" ControlToValidate="txtPrice"></asp:RegularExpressionValidator></td>
  73. </tr>
  74. <tr>
  75. <td>
  76. 出版时间:
  77. </td>
  78. <td>
  79.                                         <asp:DropDownList ID="ddlYear" runat="server">
  80.                                         </asp:DropDownList>年
  81.                                         <asp:DropDownList ID="ddlMonth" runat="server">
  82.                                         </asp:DropDownList>月
  83.                                         <asp:DropDownList ID="ddlDay" runat="server">
  84.                                         </asp:DropDownList>日</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="txtDescription" runat="server" Width="203px" TextMode="MultiLine" Height="64px"></asp:TextBox>
  100. </td>
  101. </tr>
  102. <tr>
  103. <td colspan=2 align=center>
  104.                         <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />                        
  105.                         <asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="imgBtnAdd_Click" />
  106.                         &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
  107.                         <asp:ImageButton ID="imgBtnReturn" runat="server" ImageUrl="~/Images/RETURN.GIF" /></td>
  108. </tr>
  109. </table>
  110.     </div>
  111. </asp:Content>