2 using System
.Collections
.Generic
;
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
+ "'";
27 protected void btnSearchAlbum_Click(object sender
, EventArgs e
)
32 protected void OnUpdating(object sender
, GridViewUpdateEventArgs e
)
37 protected void OnDateChanged(object sender
, EventArgs e
)
43 protected void PageIndexChanged(object sender
, EventArgs e
)
49 protected void Sorted(object sender
, EventArgs e
)
54 protected void OnEditing(object sender
, GridViewEditEventArgs e
)
59 protected void SqlDataSource1_Selected(object sender
, SqlDataSourceStatusEventArgs e
)
61 lblCount
.Text
= e
.AffectedRows
.ToString();