private void LoadDestinationModules()
        {
            if (SourceInstance.SelectedIndex > -1)
            {
                DestinationInstance.Items.Clear();

                //Get the Module Type(ex announcements) and the Source ModuleID
                int ModuleTypeID = Int32.Parse(ModuleTypes.SelectedItem.Value);
                int SourceModID  = Int32.Parse(SourceInstance.SelectedItem.Value);

                ContentManagerDB contentDB = new ContentManagerDB();

                DestinationInstance.DataValueField = "ModuleID";
                DestinationInstance.DataTextField  = "TabModule";
                DestinationInstance.DataSource     = contentDB.GetModuleInstancesExc(ModuleTypeID,
                                                                                     SourceModID, Int32.Parse(DestinationPortal.SelectedItem.Value));
                DestinationInstance.DataBind();

                //if any items exist in destination instance dropdown, select first and
                //load data for that instance.
                if (DestinationInstance.Items.Count > 0)
                {
                    DestinationInstance.SelectedIndex = 0;
                    LoadDestinationModuleData();
                }
            }
        }
        private void LoadSourceModules()
        {
            if (ModuleTypes.SelectedIndex > -1)
            {
                int ModuleTypeID = Int32.Parse(ModuleTypes.SelectedItem.Value);

                ContentManagerDB contentDB = new ContentManagerDB();

                SourceInstance.DataValueField = "ModuleID";
                SourceInstance.DataTextField  = "TabModule";

                //if a destination module has been picked, exclude that item.
                //otherwise, show all.
                if (DestinationInstance.SelectedIndex > -1)
                {
                    SourceInstance.DataSource = contentDB.GetModuleInstancesExc(
                        ModuleTypeID,
                        Int32.Parse(DestinationInstance.SelectedItem.Value),
                        Int32.Parse(SourcePortal.SelectedItem.Value));
                    SourceInstance.DataBind();
                }
                else
                {
                    SourceInstance.DataSource = contentDB.GetModuleInstances(ModuleTypeID,
                                                                             Int32.Parse(SourcePortal.SelectedItem.Value));
                    SourceInstance.DataBind();
                }


                //if items exist in the sourceinstance, select the first item
                if (SourceInstance.Items.Count > 0)
                {
                    SourceInstance.SelectedIndex = 0;
                    LoadSourceModuleData();
                }
                else
                {
                    //if there are no instances, there can be no data!!
                    SourceListBox.Items.Clear();
                }
            }
        }