OrderList.aspx
上传用户:shjujing
上传日期:2022-07-28
资源大小:11244k
文件大小:1k
源码类别:

Email客户端

开发平台:

Visual C++

  1. <%@ Page Language="C#" MasterPageFile="~/AppMaster.master" AutoEventWireup="true" CodeFile="OrderList.aspx.cs" Inherits="OrderList" Title="订单列表" %>
  2. <asp:Content ID="Content2" ContentPlaceHolderID="phMain" Runat="Server">
  3.     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
  4.         Style="position: static">
  5.         <Columns>
  6.             <asp:BoundField DataField="OID" HeaderText="订单号" InsertVisible="False" SortExpression="OID" />
  7.             <asp:BoundField DataField="OTotalPrice" HeaderText="总价格" SortExpression="OTotalPrice" />
  8.             <asp:BoundField DataField="OTotalNumber" HeaderText="总数量" SortExpression="OTotalNumber" />
  9.             <asp:BoundField DataField="OData" HeaderText="日期" SortExpression="OData" />
  10.             <asp:HyperLinkField DataNavigateUrlFields="OID" DataNavigateUrlFormatString="sucess.aspx?OID={0}" Text="查看" />
  11.         </Columns>
  12.     </asp:GridView>
  13.     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TZroomConnectionString %>"
  14.         SelectCommand="SELECT [OID], [OTotalPrice], [OTotalNumber], [OData] FROM [OrderUser] WHERE [CID] = (select UID from U_Info where UserName=@CID)">
  15.         <SelectParameters>
  16.             <asp:SessionParameter Name="CID" SessionField="name" Type="String" />
  17.         </SelectParameters>
  18.     </asp:SqlDataSource>
  19. </asp:Content>