/// <summary> /// Handles the Load event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected void Page_Load(object sender, EventArgs e) { try { trSiteMaintenance.Visible = false; if(!Page.IsPostBack) { /// Set Region Title SetRegionTitle(); objUtility = new CommonUtility(); txtUserAcc.Text = objUtility.GetUserName(); if(Request.QueryString["IsMaintenance"] != null) { if(Request.QueryString["IsMaintenance"].ToLowerInvariant().Equals("true")) { /// Display the Site Maintenace message trAccessApproval.Visible = false; trSiteMaintenance.Visible = true; lblSiteMaintenanceMessage.Text = PortalConfiguration.GetInstance().GetKey("SiteMaintenanceMessage"); this.Page.Title = lblRegionTitle.Text; } } else if(Request.QueryString["teamId"] != null) { lblTitle.Text = "Request Access for "; DataTable dtTeamDetail = new DataTable(); objMossController = objFactory.GetServiceManager("MossService"); dtTeamDetail = ((MOSSServiceManager)objMossController).ReadList( HttpContext.Current.Request.Url.ToString(), TEAMREGISTRATIONLIST, "<Where><Eq><FieldRef Name='ID'/><Value Type=\"Counter\">" + Request.QueryString["teamId"].ToString() + "</Value></Eq></Where>"); if(dtTeamDetail != null) { lblTeamName.Text = dtTeamDetail.Rows[0]["Title"].ToString(); hidTeamOwner.Value = dtTeamDetail.Rows[0]["TeamOwner"].ToString(); if(dtTeamDetail != null) dtTeamDetail.Dispose(); } } else { lblTitle.Text = "Access Approval Login"; lblTeamName.Visible = false; } txtRegion.Text = objUtility.GetUserDomain(); } } catch(WebException webEx) { //ExceptionPanel.Visible = true; //lblException.Visible = true; //lblException.Text = webEx.Message; } catch(Exception ex) { CommonUtility.HandleException(HttpContext.Current.Request.Url.ToString(), ex); } }