//修改 protected void btnConfirm_Click(object sender, EventArgs e) { try { DalOperationAboutEnglishExam dalOperationAboutEnglishExam = new DalOperationAboutEnglishExam(); UserCookiesInfo user = BllOperationAboutUser.GetUserCookiesInfo(); if (dalOperationAboutEnglishExam.CheckIsOverDateOrSignUpConfirm(user.userNo, englishExamId)) { Javascript.AlertAndRedirect("您好,当前报名信息不能修改,可能的原因为:\n1. 已经过报名截止日期。2. 报名信息已经确认。\n如有疑问请发送疑问反馈,谢谢!", "/Student/EnglishExamSignUp.aspx?fragment=2", Page); return; } dalOperationAboutEnglishExam.UpdateEnglishExamSignUp(user.userNo, ddlEnglishExamPlace.SelectedValue, ddlEnglishExamType.SelectedValue , englishExamId); //保存反馈意见 Javascript.RefreshParentWindow("修改报名信息成功!", "/Student/EnglishExamSignUp.aspx?fragment=2", Page); } catch (Exception ex) { MongoDBLog.LogRecord(ex); Javascript.GoHistory(-1, "修改报名信息失败,请检查格式是否有误!", Page); } }