private void btn_out_Click(object sender, System.EventArgs e) { BBSClass bbs = new BBSClass(); BBSBoardmember member = new BBSBoardmember(); try { //����listbox�õ�ѡ�еĵ���Աid for(int i=0;i<lbBoardMemberList.Items.Count;i++) { if(lbBoardMemberList.Items[i].Selected) { member.BoardID = boardid; member.StaffID = Int32.Parse(lbBoardMemberList.Items[i].Value); bbs.DeleteBoardMember(member); } } Response.Redirect("ManageBoardMember.aspx?BoardID="+boardid+"&ClassID="+classid); } catch(Exception ex) { UDS.Components.Error.Log(ex.ToString()); Server.Transfer("../../Error.aspx"); } }