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 SearchControl : UserControl
|
|
10 {
|
|
11 protected void PageChanged(object sender, DataGridPageChangedEventArgs e)
|
|
12 {
|
|
13 searchList.CurrentPageIndex = e.NewPageIndex;
|
|
14
|
|
15 string keywordKey = Request.QueryString["keywords"];
|
|
16
|
|
17 searchList.DataSource = new ProductManager().SearchProducts(keywordKey.Split());
|
|
18 searchList.DataBind();
|
|
19 }
|
|
20 }
|
|
21 }
|