2 using System
.Collections
.Generic
;
6 using System
.Web
.UI
.WebControls
;
7 using PumpkinHouseDatabase
;
9 namespace PumpkinHouse
.Admin
11 public partial class UserManagement
: System
.Web
.UI
.Page
13 protected void Page_Load(object sender
, EventArgs e
)
17 using (DataUtils utils
= new DataUtils(false))
19 lblUserCount
.Text
= utils
.FindUsers().Count().ToString();
24 private void FilterUser()
26 string name
= txtUsername
.Text
.Trim();
27 if (!string.IsNullOrEmpty(name
))
29 SqlDataSource1
.FilterExpression
= "Nick_Name = '" + name
+ "'";
34 protected void OnUpdating(object sender
, GridViewUpdateEventArgs e
)
39 protected void OnDateChanged(object sender
, EventArgs e
)
45 protected void PageIndexChanged(object sender
, EventArgs e
)
51 protected void Sorted(object sender
, EventArgs e
)
57 protected void OnEditing(object sender
, GridViewEditEventArgs e
)
62 protected void btnSearchUser_Click(object sender
, EventArgs e
)