Mercurial > pub > bltoolkit
annotate Demo/Asp.Net/Web/Controls/ItemsControl.ascx.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author | cin |
---|---|
date | Fri, 28 Mar 2014 01:04:56 +0400 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 using System.Web.UI; | |
3 using System.Web.UI.WebControls; | |
4 | |
5 using PetShop.BusinessLogic; | |
6 | |
7 namespace PetShop.Web | |
8 { | |
9 public partial class ItemsControl : UserControl | |
10 { | |
11 protected void PageChanged(object sender, DataGridPageChangedEventArgs e) | |
12 { | |
13 itemsGrid.CurrentPageIndex = e.NewPageIndex; | |
14 | |
15 string id = Request.QueryString["productId"]; | |
16 | |
17 itemsGrid.DataSource = new ProductManager().GetItemListByProductID(id); | |
18 itemsGrid.DataBind(); | |
19 } | |
20 } | |
21 } |