view Demo/Asp.Net/Web/Admin/Items.aspx @ 1:8f65451dc28f

Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author cin
date Fri, 28 Mar 2014 01:04:56 +0400
parents f990fcb411a9
children
line wrap: on
line source

<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="Items.aspx.cs" Inherits="Admin_Items" Title="Items" %>

<asp:Content ID="Content" ContentPlaceHolderID="cph" Runat="Server">

<asp:GridView ID="grid" runat="server"
	AutoGenerateColumns = "False"
	DataSourceID        = "binder"
	CssClass            = "grid"
	AllowSorting        = "True">
<Columns>
	<asp:BoundField DataField="ID"          HeaderText="Item ID"      SortExpression="ID" />
	<asp:BoundField DataField="Name"        HeaderText="Name"         SortExpression="Name" />
	<asp:BoundField DataField="Price"       HeaderText="Price"        SortExpression="Price"    ItemStyle-HorizontalAlign="Right" />
	<asp:BoundField DataField="UnitCost"    HeaderText="Unit Cost"    SortExpression="UnitCost" ItemStyle-HorizontalAlign="Right" />
	<asp:BoundField DataField="Quantity"    HeaderText="Quantity"     SortExpression="Quantity" ItemStyle-HorizontalAlign="Right" />
	<asp:BoundField DataField="ProductName" HeaderText="Product Name" SortExpression="ProductName" />
	<asp:BoundField DataField="CategoryID"  HeaderText="Category"     SortExpression="CategoryID" />
</Columns>
</asp:GridView>

<blt:WebObjectBinder ID="binder" runat="server" TypeName="PetShop.ObjectModel.Item" />

</asp:Content>