<%@ Page Language="c#" masterpagefile="~/masterpage.master" Inherits="Microsoft.Samples.SqlServer.OrderDetailsPage" CodeFile="OrderDetails.aspx.cs" %> <asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="server"> <!-- ===================================================================== File: OrderDetails.aspx for Adventure Works Cycles Storefront Sample Summary: Displays a summary of the selected order and the line items which are part of the order. Date: June 16, 2003 ===================================================================== This file is part of the Microsoft SQL Server Code Samples. Copyright (C) Microsoft Corporation. All rights reserved. This source code is intended only as a supplement to Microsoft Development Tools and/or on-line documentation. See these other materials for detailed information regarding Microsoft code samples. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. ======================================================= --> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td class="ContentHead"> <img align="left" height="32" width="60" src="images/1x1.gif">Order Details <br> </td> </tr> </table> <img align="left" height="15" width="86" src="images/1x1.gif" border="0"> <asp:Label id="MyError" CssClass="ErrorText" EnableViewState="false" runat="Server" /> <table id="detailsTable" height="100%" cellspacing="0" cellpadding="0" width="550" border="0" EnableViewState="false" runat="server"> <tr valign="top"> <td width="100%" class="Normal"> <br /> <b>Your Order Number Is: </b> <asp:Label ID="orderNumberLabel" EnableViewState="false" runat="server" /> <br /> <b>Order Date: </b> <asp:Label ID="orderDateLabel" EnableViewState="false" runat="server" /> <br /> <b>Ship Date: </b> <asp:Label ID="shipDateLabel" EnableViewState="false" runat="server" /> <br /> <br /> <b>Bill to address:</b> <br /> <asp:label id="billToAddressLine1" EnableViewState="false" runat="server" /> <br /> <asp:label id="billToAddressLine2" EnableViewState="false" runat="server" /> <br /> <asp:label id="billToAddressCity" EnableViewState="false" runat="server" />, <asp:label id="billToAddressStateProvince" EnableViewState="false" runat="server" />, <asp:label id="billToAddressPostalCode" EnableViewState="false" runat="server" /> <br /> <br /> <b>Ship to address:</b> <br /> <asp:label id="shipToAddressLine1" EnableViewState="false" runat="server" /> <br /> <asp:label id="shipToAddressLine2" EnableViewState="false" runat="server" /> <br /> <asp:label id="shipToAddressCity" EnableViewState="false" runat="server" />, <asp:label id="shipToAddressStateProvince" EnableViewState="false" runat="server" />, <asp:label id="shipToAddressPostalCode" EnableViewState="false" runat="server" /> <br /> <br /> <asp:DataGrid id="GridControl1" width="90%" BorderColor="black" GridLines="Vertical" cellpadding="4" cellspacing="0" Font-Names="Verdana" Font-Size="8pt" ShowFooter="true" HeaderStyle-CssClass="CartListHead" FooterStyle-CssClass="cartlistfooter" ItemStyle-CssClass="CartListItem" AlternatingItemStyle-CssClass="CartListItemAlt" AutoGenerateColumns="false" runat="server"> <Columns> <asp:BoundColumn HeaderText="Product Name" DataField="Name" /> <asp:BoundColumn HeaderText="Model Number" DataField="ProductNumber" /> <asp:BoundColumn HeaderText="Quantity" DataField="OrderQty" /> <asp:BoundColumn HeaderText="Price" DataField="UnitPrice" DataFormatString="{0:c}" /> <asp:BoundColumn HeaderText="Subtotal" DataField="ExtendedAmount" DataFormatString="{0:c}" /> </Columns> </asp:DataGrid> <br> <b>Total: </b> <asp:Label ID="totalLabel" EnableViewState="false" runat="server" /> </td> </tr> </table> </asp:content>