protected void Page_Load(object sender, EventArgs e) { try { //Set the module code of this user control this.ModuleCode = ApplicationConstants.MODULE_PROJECT_SELECTION; CurrentProject project = (CurrentProject)SessionManager.GetSessionValueNoRedirect((IndBasePage)this.Page, SessionStrings.CURRENT_PROJECT); string url = ResolveUrl("~/UserControls/ProjectSelector/SelectProject.aspx"); lnkChange.OnClientClick = "return ShowPopUpWithoutPostBackWithDirtyCheck('" + url + "',0,540, '" + ResolveUrl("~/Default.aspx?SessionExpired=1") + "')"; lblProjectName.Text = (project == null) ? "No project selected" : "Current project: " + ApplicationUtils.DisplayEntity(project.Name, ProjectLength); } catch (IndException ex) { ReportControlError(ex); return; } catch (Exception ex) { ReportControlError(new IndException(ex)); return; } }