?? bookadd.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BookAdd.aspx.cs" Inherits="BookManage_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>
<script language="javascript" type="text/javascript">
<!--
function TABLE1_onclick() {
}
// -->
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<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()">
<tr>
<td align=center colspan=2>
<FONT size="5" face=隸書>添加圖書</FONT>
</td>
</tr>
<tr>
<td>
書名:
</td>
<td>
<asp:TextBox id="txtName" runat="server" Width="193px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="此項不能為空" ControlToValidate="txtName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
ISBN號:
</td>
<td >
<asp:TextBox id="txtISBN" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="此項不能為空" ControlToValidate="txtISBN"></asp:RequiredFieldValidator><BR>
<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="輸入有誤,請重輸" ValidationExpression="\d{1,}\-\d{1,}\-\d{1,}\-\d{1,}" ControlToValidate="txtISBN"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td>
作者名:
</td>
<td>
<asp:TextBox id="txtAuthor" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="此項不能為空" ControlToValidate="txtAuthor"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
出版社:
</td>
<td>
<asp:TextBox id="txtPublish" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" ErrorMessage="此項不能為空" ControlToValidate="txtPublish"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
出版時間:
</td>
<td>
<asp:DropDownList ID="ddlYear" runat="server">
</asp:DropDownList>年
<asp:DropDownList ID="ddlMonth" runat="server">
</asp:DropDownList>月
<asp:DropDownList ID="ddlDay" runat="server">
</asp:DropDownList>日</td>
</tr>
<tr>
<td>
圖書類型:
</td>
<td>
<asp:RadioButtonList ID="rblClassify" runat="server" Font-Size="9pt" RepeatDirection="Horizontal">
<asp:ListItem Value="2" Selected="True">中文圖書</asp:ListItem>
<asp:ListItem Value="3">西文圖書</asp:ListItem>
<asp:ListItem Value="4">中文期刊</asp:ListItem>
<asp:ListItem Value="5">西文期刊</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
<tr>
<td>
主題詞:
</td>
<td >
<asp:TextBox id="txtSubject" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" ControlToValidate="txtSubject" ErrorMessage="此項不能為空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
索取號:
</td>
<td>
<asp:TextBox id="txtIndex" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" ControlToValidate="txtIndex" ErrorMessage="此項不能為空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
定價(元):
</td>
<td>
<asp:TextBox id="txtPrice" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator7" runat="server" ErrorMessage="此項不能為空" ControlToValidate="txtPrice"></asp:RequiredFieldValidator><BR>
<asp:RegularExpressionValidator id="RegularExpressionValidator" runat="server" ErrorMessage="輸入有誤,請重輸" ValidationExpression="(\d{1,}\.\d*)|(\d{1,})" ControlToValidate="txtPrice"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td>
頁數:
</td>
<td>
<asp:TextBox id="txtPageNum" runat="server" Width="192px"></asp:TextBox>*
<asp:RequiredFieldValidator id="RequiredFieldValidator8" runat="server" ControlToValidate="txtPageNum" ErrorMessage="此項不能為空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
從書名:
</td>
<td>
<asp:TextBox id="txtSeries" runat="server" Width="190px"></asp:TextBox></td>
</tr>
<tr>
<td>
說明:
</td>
<td>
<asp:TextBox id="txtDescription" runat="server" Width="203px" TextMode="MultiLine" Height="64px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />
<asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="ImageButton1_Click" />
<asp:ImageButton ID="imgBtnReturn" runat="server" ImageUrl="~/Images/RETURN.GIF" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -