admin/products/xiajia.aspx

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="cTable_2 table">
	<tr class="cTitle toolbarBg"> 
		<td width="25%"><div>下架果蔬</div></td>
		<td colspan="2"></td>
	</tr>
 <tr >
		<td class="tRight" colspan="2">
        
            <table style="width:100%">
                <tr>
                    <td align="center">
        <strong> 所属类别</strong><asp:DropDownList ID="ddltid" runat="server" Width="150">
</asp:DropDownList><strong> 推荐</strong><asp:DropDownList ID="ddlflag" runat="server" Width="150">
        <asp:ListItem>是</asp:ListItem>
   <asp:ListItem>否</asp:ListItem>
</asp:DropDownList>                   <strong> 水果名称:</strong><asp:TextBox ID="txt_pname" runat="server" width="150"></asp:TextBox>

    <asp:Button ID="Button1" runat="server" Text="搜 索"   onclick="btnSearch_Click" />
</td>
                </tr>
            </table>
        
        </td>
	</tr>
	 <tr >
		<td class="tRight" colspan="2">
        
            <table style="width:100%">
                <tr>
                    <td>
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" GridLines="None" AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging">
        <RowStyle Height="25px" HorizontalAlign="Center" />
        <Columns>       
            <asp:BoundField HeaderText="水果名称" DataField="pname" />
            <asp:BoundField HeaderText="所属类别" DataField="tname" />
            <asp:TemplateField HeaderText="水果图片">
            <ItemTemplate>
            <img alt="" src="../../uploads/<%#Eval("pic")%>" width="100"  height="80" />
            </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="原价" DataField="price" />
            <asp:BoundField HeaderText="现价" DataField="price2" />
            <asp:BoundField HeaderText="库存数量" DataField="quan" />
            <asp:BoundField HeaderText="推荐" DataField="flag" />
            <asp:BoundField HeaderText="上架时间" DataField="addtime" />
      
            <asp:TemplateField HeaderText="下架" >
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False"   CommandName='<%#Eval("pid") %>' OnClick="lnk_Click" Text="下架" OnClientClick='return confirm("您确定要下架此水果吗?");'></asp:LinkButton>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </asp:TemplateField>   
        </Columns>
        <PagerStyle HorizontalAlign="Center" />
    </asp:GridView>
后面还有 12 行代码,购买后查看完整代码

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

AI 解读 AI

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

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