活动页面添加参赛作品瀑布流
[PumpkinHouse.git] / PumpkinHouseWeb / Admin / AlbumManagement.aspx.cs
blob32bdc3a9202b253e3f8ffa91e9ac2540d0f436e8
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Web;
5 using System.Web.UI;
6 using System.Web.UI.WebControls;
8 namespace PumpkinHouse.Admin
10 public partial class AlbumManagement : System.Web.UI.Page
12 protected void Page_Load(object sender, EventArgs e)
17 private void FilterAlbum()
19 string name = txtSearchAlbum.Text.Trim();
20 if (!string.IsNullOrEmpty(name))
22 SqlDataSource1.FilterExpression = "Name = '" + name + "'";
23 GridView1.DataBind();
27 protected void btnSearchAlbum_Click(object sender, EventArgs e)
29 FilterAlbum();
32 protected void OnUpdating(object sender, GridViewUpdateEventArgs e)
34 FilterAlbum();
37 protected void OnDateChanged(object sender, EventArgs e)
39 FilterAlbum();
43 protected void PageIndexChanged(object sender, EventArgs e)
45 FilterAlbum();
49 protected void Sorted(object sender, EventArgs e)
51 FilterAlbum();
54 protected void OnEditing(object sender, GridViewEditEventArgs e)
56 FilterAlbum();
59 protected void SqlDataSource1_Selected(object sender, SqlDataSourceStatusEventArgs e)
61 lblCount.Text = e.AffectedRows.ToString();