⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatebook.aspx

📁 一个简单的网上书店
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HT.master" CodeFile="updateBook.aspx.cs" Inherits="updateBook" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <div style="z-index: 101; left: 13px; width: 633px; position: absolute; top: 2px;
        height: 571px">
        <asp:DetailsView ID="DetailsView1" runat="server" Height="54px" Width="642px" AutoGenerateRows="False">
        <Fields>
            <asp:TemplateField>
                <ItemTemplate>
                     <table>
            <tr class="category">
                <td style="width: 675px" align="center">
                <span style="color:Gray;">修改图书信息</span>
                    
                </td>
            </tr>
            <tr>
                <td style="width: 675px">
                <center>
                <table cellspacing="0" cellpadding="5" >
                    <tbody>  
                         <tr class="category">
                            <td  colspan="2" align="left">一般信息</td>
                         </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                书名:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:TextBox ID="txtTitle" runat="server" Height="16px" Width="164px"  Text='<%#Eval("Title") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                出版社:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                               <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="objPub" DataTextField="Name"
                                    DataValueField="Id">
                                </asp:DropDownList><asp:ObjectDataSource ID="objPub" runat="server" SelectMethod="selPub"
                                   TypeName="CommBLL.SelDataSouce"></asp:ObjectDataSource>
                            </td>
                        </tr>
                          <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 16px;" class="subject">
                                出版日期:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 16px;" align="left" valign="top">
                                
                                <asp:TextBox ID="txtPubData" runat="server" Height="17px" Width="168px" Text='<%#Eval("PublishDate","{0:yyyy/MM/dd}")%>'></asp:TextBox></td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                书籍类别:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 16px;" align="left" valign="top">
                                <asp:DropDownList ID="lstBookType" runat="server" Width="102px" DataSourceID="objBooktype" DataTextField="Name" DataValueField="Id">
                                </asp:DropDownList><asp:ObjectDataSource ID="objBooktype" runat="server" SelectMethod="selBookType"
                                    TypeName="CommBLL.SelDataSouce"></asp:ObjectDataSource>
                            </td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                单价:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:TextBox ID="txtPrice" runat="server" Height="16px" Width="164px" Text='<%#Eval("UnitPrice") %>' ></asp:TextBox>
                            </td>
                        </tr>
                        
                         <tr class="category">
                            <td  colspan="2" align="left">作者信息</td>
                         </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                姓名:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:TextBox ID="txtAotherName" runat="server" Height="16px" Width="164px" Text='<%#Eval("Author") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                编辑:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:TextBox ID="txtEmi" runat="server" Height="16px" Width="164px" Text='<%#Eval("EditorComment") %>'></asp:TextBox>
                            </td>
                        </tr>
                         <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 30px;" class="subject">
                                作者简介:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 30px;" align="left" valign="top">
                                <asp:TextBox ID="txtAuthorComment" runat="server" Height="32px" Width="298px" TextMode="MultiLine" Text='<%#Eval("AuthorDescription") %>' ></asp:TextBox>
                            </td>
                        </tr>
                        
                        
                        <tr class="category">
                            <td  colspan="2" align="left">详细信息</td>
                         </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px;" class="subject">
                                条形码:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7;" align="left" valign="top">
                                <asp:TextBox ID="txtIsbn" runat="server" Height="16px" Width="164px"  Text='<%#Eval("ISBN") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 16px;" class="subject">
                                字数:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 20px;" align="left" valign="top">
                                <asp:TextBox ID="txtcounts" runat="server" Height="16px" Width="164px" Text='<%#Eval("WordsCount") %>'></asp:TextBox></td>
                        </tr>
                         <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 11px;" class="subject">
                                图片:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 11px;" align="left" valign="top">
                                <asp:Image ID="Image1" runat="server" Height="42px" ImageUrl='<%#Eval("Img") %>'
                                    Width="51px" />
                                <asp:FileUpload ID="FileUpload1" runat="server" Width="235px" /></td>
                        </tr>
                                                 <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 12px;" class="subject">
                                目录:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 12px;" align="left" valign="top">
                                <asp:TextBox ID="txttoc" runat="server" Height="33px" TextMode="MultiLine" Width="297px" Text='<%#Eval("TOC") %>'></asp:TextBox></td>
                        </tr>
                                                 <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 11px;" class="subject">
                                内容简介:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 11px;" align="left" valign="top">
                                <asp:TextBox ID="txtcomments" runat="server" Height="33px" TextMode="MultiLine" Width="297px" Text='<%#Eval("ContentDescription") %>'></asp:TextBox></td>
                        </tr>
                                                 <tr class="row" onmouseover="this.style.backgroundColor='#f7f7f7'" 
                             onmouseout="this.style.backgroundColor='#ffffff'">
                            <td style="width: 300px; height: 11px;" class="subject">
                                是否推荐:
                            </td>
                            <td style="width: 300px; background-color:#f7f7f7; height: 11px;" align="left" valign="top">
                                <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="1">推荐</asp:ListItem>
                                    <asp:ListItem Value="0" Selected="True">不推荐</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>

                        </tbody>
                    </table></center>
                </td>
            </tr>
            <tr>
                <td style="width: 675px" align="center">
                    <asp:Button ID="Button1" runat="server" Text="修 改" OnClick="Button1_Click" />
                    <asp:Button ID="Button2" runat="server" Text="返 回" />
                </td>
            </tr>
        </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Fields>
        </asp:DetailsView>
       
    </div>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -