WareList.aspx

(开头部分) 3KB

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

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WareList.aspx.cs" Inherits="_Default" %>

<!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 runat="server">
    <title>无标题页</title>
</head>
<body background="images/1.jpg">
    <form id="form1" runat="server">
    <div align="center">
        &nbsp;
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="返回购买商品" />
        <br />
        <br />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SMDBConnectionString %>"
            SelectCommand="SELECT * FROM [T_WareType]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:SMDBConnectionString %>"
            SelectCommand="SELECT T_Ware.sp_WareID, T_Ware.splb_TypeID, T_Ware.sp_Price, T_Ware.sp_Information,T_Ware.sp_WareName, T_WareType.splb_TypeName FROM T_Ware INNER JOIN T_WareType ON T_Ware.splb_TypeID = T_WareType.splb_TypeID">
        </asp:SqlDataSource>
        <br />
        <table style="width: 504px; height: 208px">
            <tr>
                <td style="width: 66px">
                    商品查询</td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 66px">
                    商品名称</td>
                <td style="width: 100px">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 66px">
                    类别</td>
                <td style="width: 100px">
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1"
                        DataTextField="splb_TypeName" DataValueField="splb_TypeID">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 66px">
                    卖家</td>
                <td style="width: 100px">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" style="height: 41px">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="查询" /></td>
            </tr>
        </table>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
            DataSourceID="SqlDataSource2" PageSize="5" AllowPaging="True">
            <Columns>
                <asp:BoundField DataField="sp_WareName" HeaderText="商品名称" SortExpression="sp_WareName" />
后面还有 12 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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