comparison Demo/Asp.Net/Web/Controls/ProductsControl.ascx.cs @ 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 using System;
2 using System.Web;
3 using System.Web.UI.WebControls;
4
5 using PetShop.BusinessLogic;
6
7 namespace PetShop.Web
8 {
9 public partial class ProductsControl : System.Web.UI.UserControl
10 {
11 protected void PageChanged(object sender, DataGridPageChangedEventArgs e)
12 {
13 productsList.CurrentPageIndex = e.NewPageIndex;
14
15 string id = Request.QueryString["categoryId"];
16
17 productsList.DataSource = new ProductManager().GetProductListByCategoryID(id);
18 productsList.DataBind();
19 }
20 }
21 }