protected void Page_Load(object sender, EventArgs e) { try { int recordCount; string type = ConvertUtility.Trim(Request.QueryString["type"]); string estateId = ConvertUtility.Trim(Request.QueryString["code"]); this.EstateId = estateId; this.PageSize = AppSettings.PageSize; EstateCmService estateService = new EstateCmService(); EstateCm estate = estateService.GetEstateById(this.EstateId); this.TitleBar = estate.ToNavBar(false); BuildCmService buildService = new BuildCmService(); ComparedEstateType comparedEstate = estateService.GetComparedEstate(estateId); if (comparedEstate != null) { this.ComparedBuildCollection = buildService.ListComparedBuild(comparedEstate, 1, this.PageSize, out recordCount); } else { this.BuildCollection = buildService.ListBuild(this.EstateId, 1, this.PageSize, out recordCount); } this.RecordCount = recordCount; } catch (Exception ex) { throw ex; } }