Good/GoodList.aspx

(完整代码) 3KB

<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage/MasterPage.master"  CodeFile="GoodList.aspx.cs" Inherits="Good_GoodList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table border="0" style="border-color:#FFFFFF;" cellpadding="0" cellspacing="0">
    
            <tr>
                <td>                    
                    <asp:GridView ID="GridViewClient" runat="server" Width="900px" Font-Size="12px" AutoGenerateColumns="false" PageSize="10" AllowPaging="true"
                    OnRowDeleting="GridViewClient_RowDeleting"  OnRowEditing="GridViewClient_Editing"
                     OnPageIndexChanging="GridViewClient_PageIndexChanging">
                        <Columns>
                          <asp:BoundField DataField = "ID" HeaderText= "编号" />
                            <asp:BoundField DataField = "Number" HeaderText= "产品编号" />
                            <asp:BoundField DataField = "Name" HeaderText = "产品名称" />
                            <asp:BoundField DataField ="jiage" HeaderText ="销售价格" />
               <asp:BoundField DataField ="changjia" HeaderText ="生产厂家" />
                    <asp:BoundField DataField ="miaoshu" HeaderText ="产品描述" />
                     <asp:CommandField  ShowEditButton="true" ButtonType="link" HeaderText="编辑"/>
                            <asp:CommandField ShowDeleteButton="True" HeaderText="编辑"  DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('你确定要删除?')&quot;&gt;删除&lt;/div&gt;" /> 
                        </Columns>
                        <FooterStyle CssClass="FooterStyle" />
                
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <HeaderStyle CssClass="HeaderStyle" />
                        <EditRowStyle  />
                        <AlternatingRowStyle />
                        <PagerTemplate>
                            <asp:Label ID="lblCurrentPage" runat="server" ForeColor="Red" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>/
                            <asp:Label ID="lblPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                            <asp:LinkButton ID="lbtnFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                ForeColor="Black" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">首页</asp:LinkButton>
                            <asp:LinkButton ID="lbtnPreviousPage" runat="server" CommandArgument="Prev" CommandName="Page"
                                ForeColor="Black" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>">上一页</asp:LinkButton>
                            <asp:LinkButton ID="lbtnNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                ForeColor="Black" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">下一页</asp:LinkButton>
                            <asp:LinkButton ID="lbtnLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                ForeColor="Black" Visible="<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>">尾页</asp:LinkButton>
                        </PagerTemplate>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="width:900px;height:28px;background-image:url(../images/Image_bg.gif);"> <a href="#" onclick="javascript:window.print();">打印本页</a></td>
            </tr>
        </table>
    </div>
</asp:Content>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。