コード例 #1
0
    protected override void InitializeTargetObject()
    {
        base.InitializeTargetObject();

        targetShow = LoadObjectFromAPI <msExhibitShow>(ContextID);
        if (targetShow == null)
        {
            GoToMissingRecordPage();
        }
    }
コード例 #2
0
    protected override void InitializeTargetObject()
    {
        base.InitializeTargetObject();

        targetShow = LoadObjectFromAPI <msExhibitShow>(ContextID);
        if (targetShow == null)
        {
            GoToMissingRecordPage();
        }
        targetEntity = LoadObjectFromAPI <msEntity>(Request.QueryString["entityID"]);
        if (targetEntity == null)
        {
            GoToMissingRecordPage();
        }
    }
コード例 #3
0
    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();
        }
    }
コード例 #4
0
    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];
        }
    }