admin_book_update.aspx
来自「《ASP.NET程序设计实用教程》源代码,这本书非常使用,有次源码更是锦上添花,」· ASPX 代码 · 共 75 行
ASPX
75 行
<%@ Page Inherits="admin_book_update" Src="admin_book_update.aspx.cs" validateRequest="false"%>
<html>
<head>
<title>更新书籍信息</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body >
<h3 align="center">更新书籍</h3>
<center>
<form runat="server" enctype="multipart/form-data" >
<table width="80%" border=0 cellpadding="4" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">名称</td>
<td width="79%">
<asp:TextBox id="txtBookName" Columns="50" runat="server"/>*
<asp:RequiredFieldValidator id="require1" ControlToValidate="txtBookName" ErrorMessage="*" runat="server"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">作者</td>
<td width="79%">
<asp:TextBox id="txtBookAuthor" Columns="20" runat="server"/>*
<asp:RequiredFieldValidator id="require2" ControlToValidate="txtBookAuthor" ErrorMessage="*" runat="server"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">价格</td>
<td width="79%">
<asp:TextBox id="txtBookPrice" Columns="10" runat="server"/>*
<asp:RequiredFieldValidator id="require3" ControlToValidate="txtBookPrice" ErrorMessage="*" runat="server"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">数量</td>
<td width="79%">
<asp:TextBox id="txtBookNum" Columns="10" runat="server"/>*
<asp:RequiredFieldValidator id="require4" ControlToValidate="txtBookNum" ErrorMessage="*" runat="server"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">所属类别</td>
<td width="79%">
<asp:DropDownList id="dropKindId" runat="server"/>*
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">内容简介</td>
<td width="79%">
<asp:TextBox id="txtBookIntro" TextMode="MultiLine" Columns="50" Rows="4" runat="server"/>*
<asp:RequiredFieldValidator id="require5" ControlToValidate="txtBookIntro" ErrorMessage="*" runat="server"/>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">目录</td>
<td width="79%">
<asp:TextBox id="txtBookIndex" TextMode="MultiLine" Columns="50" Rows="4" runat="server"/>*
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="21%" height="25">封面图片</td>
<td width="79%">
<asp:Image id="imgPicture" width='67' height='87' runat="server"/>
<input type="file" id="UploadFile" runat="server" />*
</td>
</tr>
</table>
<br>
<asp:TextBox id="txtBookId" Visible="False" runat="server"/>
<asp:Button id="btnEnter" onClick="btnEnter_Click" Text=" 确定 " CssClass="inputbutton" runat="server"/>
<br>
<asp:Label id="lblMessage" runat="server"/>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?