protected override void Initialize() { base.Initialize(); try { gAssessmentID = Convert.ToInt32(this.DecryptQueryString(Request.QueryString["value"], "AssessmentID")); } catch (Exception) { gAssessmentID = -1; return; } try { gAssessmentRespID = Convert.ToInt32(this.DecryptQueryString(Request.QueryString["value"], "AssessmentRespID")); } catch (Exception) { gAssessmentRespID = -1; } gAssessment_br = new BusinessRules.OP_Assessment(BSWSession.SessionID, BSWSession.UserID); gLookUp = new BusinessRules.OP_LookUp(BSWSession.SessionID, BSWSession.UserID); listResponses = new List <AssessmentItemResponse>(); if (gAssessmentRespID > 0) { //load old responses AssessmentResponse objResp = gAssessment_br.GetAssessmentResponse(BSWSession.UserID, gAssessmentRespID, null); listResponses = OP_Assessment.GetItemResponsesByAssessmentRespID(gAssessmentRespID); gIsAssessmentClosed = !objResp.IsCurent; if (gIsAssessmentClosed) { btnDeleteAssessmentResponse.Visible = true; } } else { gIsAssessmentClosed = false; } }