protected void myGrid_ItemCommand(object source, DataGridCommandEventArgs e) { if (e.CommandName.Equals("del")) { int uid = Convert.ToInt32(e.CommandArgument); UserBiz.DeleteUser(uid); UserBiz.DeleteUserRoleByUserID(uid); } PageInit(); }