protected void btnCancel_Click(object sender, EventArgs e) { var club = ClubLogic.GetCreateClubApplicationByUserID(userid); if (club != null) { ClubLogic.ApproveClub(club.ID.Value, false); } var script = "alert('申请已取消!');"; ClientScript.RegisterClientScriptBlock(typeof(string), "canceled", script, true); }