protected override void InitializeTargetObject() { base.InitializeTargetObject(); targetShow = LoadObjectFromAPI <msExhibitShow>(ContextID); if (targetShow == null) { GoToMissingRecordPage(); } }
protected override void InitializeTargetObject() { base.InitializeTargetObject(); targetShow = LoadObjectFromAPI <msExhibitShow>(ContextID); if (targetShow == null) { GoToMissingRecordPage(); } targetEntity = LoadObjectFromAPI <msEntity>(Request.QueryString["entityID"]); if (targetEntity == null) { GoToMissingRecordPage(); } }
protected override void InitializeTargetObject() { base.InitializeTargetObject(); targetExhibitor = LoadObjectFromAPI <msExhibitor>(ContextID); if (targetExhibitor == null) { GoToMissingRecordPage(); } targetShow = LoadObjectFromAPI <msExhibitShow>(targetExhibitor.Show); if (targetShow == null) { GoToMissingRecordPage(); } targetEntity = LoadObjectFromAPI <msEntity>(targetExhibitor.Customer); if (targetEntity == null) { GoToMissingRecordPage(); } }
protected override void InitializeTargetObject() { base.InitializeTargetObject(); targetExhibitor = LoadObjectFromAPI <msExhibitor>(ContextID); if (targetExhibitor == null) { GoToMissingRecordPage(); } targetShow = LoadObjectFromAPI <msExhibitShow>(targetExhibitor.Show); if (targetShow == null) { GoToMissingRecordPage(); } int index; if (int.TryParse(Request.QueryString["itemIndex"], out index) && targetExhibitor.Contacts != null && targetExhibitor.Contacts.Count >= index) { targetContact = targetExhibitor.Contacts[index]; } }