comparison Demo/Asp.Net/Web/Admin/Orders.aspx @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 <%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="Orders.aspx.cs" Inherits="Admin_Orders" Title="Orders" %>
2 <%@ Import Namespace="PetShop.ObjectModel" %>
3
4 <asp:Content ID="Content" ContentPlaceHolderID="cph" Runat="Server">
5
6 <asp:GridView ID="grid" runat="server"
7 AutoGenerateColumns = "False"
8 DataSourceID = "binder"
9 CssClass = "grid"
10 AllowSorting = "True">
11 <Columns>
12 <asp:BoundField DataField="ID" HeaderText="Order ID" SortExpression="ID" ItemStyle-HorizontalAlign="Right" />
13 <asp:BoundField DataField="UserID" HeaderText="User ID" SortExpression="UserID" />
14 <asp:TemplateField HeaderText="Ship To">
15 <ItemTemplate><%# FormatAddress(((Order)Container.DataItem).ShippingAddress) %></ItemTemplate>
16 </asp:TemplateField>
17 <asp:BoundField DataField="OrderDate" HeaderText="Date" SortExpression="OrderDate" DataFormatString="{0:MM/dd/yy hh:mm tt}" HtmlEncode="false" />
18 <asp:BoundField DataField="Courier" HeaderText="Courier" SortExpression="Courier" />
19 <asp:BoundField DataField="TotalPrice" HeaderText="TotalPrice" SortExpression="TotalPrice" ItemStyle-HorizontalAlign="Right" />
20 <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
21 </Columns>
22 </asp:GridView>
23
24 <blt:WebObjectBinder ID="binder" runat="server" TypeName="PetShop.ObjectModel.Order" />
25
26 </asp:Content>