Admin/ProductClassManage.aspx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductClassManage.aspx.cs" Inherits="Admin_ProductClassManage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>商品分类管理</title>
<link rel="stylesheet" type="text/css" href="../css/Admin_STYLE.CSS">
</head>
<body>
<form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" Width="800px">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
SortExpression="ID" >
<ItemStyle Width="40px" HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField DataField="className" HeaderText="分类名称" SortExpression="className" >
<ControlStyle Width="100%" />
</asp:BoundField>
<asp:BoundField DataField="classpic" HeaderText="分类图片" SortExpression="classpic" >
<ItemStyle Width="150px" />
<ControlStyle Width="145px" />
</asp:BoundField>
<asp:CommandField HeaderText="操作" ShowDeleteButton="True" ShowEditButton="True" >
<ItemStyle HorizontalAlign="Center" Width="100px" />
</asp:CommandField>
</Columns>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="12px" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<table width="400" border="0">
<tr>
<td width="70">
<asp:Label ID="Label1" runat="server" Text="分类名称"></asp:Label></td>
<td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td width="70">
<asp:Label ID="Label2" runat="server" Text="分类图片"></asp:Label></td>
<td> <asp:FileUpload ID="FileUpload1" runat="server" Width="99%" /></td>
</tr>
<tr>
<td width="70"> </td>
<td align="right"> <asp:Button ID="btnAdd" runat="server" Text="添加分类" OnClick="btnAdd_Click" /></td>
</tr>
</table>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [tProClass]" DeleteCommand="DELETE FROM [tProClass] WHERE [ID] = @ID" InsertCommand="INSERT INTO [tProClass] ([className], [classpic]) VALUES (@className, @classpic)" UpdateCommand="UPDATE [tProClass] SET [className] = @className, [classpic] = @classpic WHERE [ID] = @ID">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int64" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="className" Type="String" />
<asp:Parameter Name="classpic" Type="String" />
<asp:Parameter Name="ID" Type="Int64" />
</UpdateParameters>
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。