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

📄 modifyproductadmin.ascx

📁 网上书店
💻 ASCX
字号:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ModifyProductAdmin.ascx.cs" Inherits="AdminControl_ModifyProductAdmin" %>
<table border="1" cellpadding="0" cellspacing="0" style="width: 600px">
    <tr>
        <td align="center" style="width: 600px">
            商品信息</td>
    </tr>
    <tr>
        <td align="left" style="width: 600px">
            请选择分类:<asp:DropDownList ID="ddlCategory" runat="server" AutoPostBack="True" 
                OnSelectedIndexChanged="ddlCategory_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="width: 600px">
            <asp:Panel ID="Panel1" runat="server" Height="700px" ScrollBars="both" 
                Width="600px">
                <asp:GridView ID="gridProducts" runat="server" 
        AutoGenerateColumns="False" DataKeyNames="BookID" 
        OnRowCancelingEdit="gridProducts_RowCancelingEdit" 
        OnRowDeleting="gridProducts_RowDeleting" OnRowEditing="gridProducts_RowEditing" 
        OnRowUpdating="gridProducts_RowUpdating" Width="1200px">
                    <Columns>
                        <asp:BoundField DataField="BookID" HeaderText="图书ID" 
                ReadOnly="True" Visible="False" />
                        <asp:BoundField DataField="BookName" HeaderText="图书名">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BookNo" HeaderText="图书编号" 
                ReadOnly="True">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Author" HeaderText="作者">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Publisher" HeaderText="出版社">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Price" HeaderText="单价">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Amount" HeaderText="库存">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="LeftNumber" HeaderText="剩余量">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Content" HeaderText="备注">
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:BoundField>
                        <asp:CheckBoxField DataField="IsRecommand" 
                HeaderText="是否为推荐图书">
                            <ItemStyle Width="50px" />
                            <HeaderStyle Width="50px" />
                        </asp:CheckBoxField>
                        <asp:CheckBoxField DataField="IsSpecialPrice" 
                HeaderText="是否为特价图书">
                            <ItemStyle Width="50px" />
                            <HeaderStyle Width="50px" />
                        </asp:CheckBoxField>
                        <asp:ImageField DataImageUrlField="ImageFileName1" 
                DataImageUrlFormatString="~/BookImages/{0}" HeaderText="图片1">
                            <ControlStyle Height="100px" Width="100px" />
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:ImageField>
                        <asp:ImageField DataImageUrlField="ImageFileName2" 
                DataImageUrlFormatString="~/BookImages/{0}" HeaderText="图片2">
                            <ControlStyle Height="100px" Width="100px" />
                            <ItemStyle Width="100px" />
                            <HeaderStyle Width="100px" />
                        </asp:ImageField>
                        <asp:CommandField ButtonType="Button" 
                ShowEditButton="True">
                            <HeaderStyle Width="50px" />
                            <ItemStyle Width="50px" />
                        </asp:CommandField>
                        <asp:CommandField ButtonType="Button" 
                ShowDeleteButton="True">
                            <HeaderStyle Width="50px" />
                            <ItemStyle Width="50px" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle Height="100px" HorizontalAlign="Left" 
            VerticalAlign="Top" Width="100px" Wrap="False" />
                </asp:GridView>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td align="right" style="width: 600px">
            共<asp:Label ID="lblCount" runat="server"></asp:Label>
            页 第<asp:DropDownList ID="ddlPageNumber" runat="server" AutoPostBack="True" 
                OnSelectedIndexChanged="ddlPageNumber_SelectedIndexChanged">
            </asp:DropDownList>
            页</td>
    </tr>
</table>

⌨️ 快捷键说明

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