public void LoadFilterFromStoredValues(AssetFinder finder)
        {
            // load lists and dropdowns
            foreach (MetadataInputWrapper input in TemporaryMetaControlsPlaceHolder.Controls)
            {
                var ids = finder.GetMetadataIds(input.GroupNumber);
                input.SetSelection(ids);
            }

            IncludeUnpublishedExpiredAssets.Checked = finder.IncludeUnpublishedExpiredAssets;

            //Select filesize
            ComplexCriteria fileSizeCriteria = finder.GetSingleComplexCriteria(Asset.Columns.FileSize);

            if (fileSizeCriteria != null)
            {
                //Convert the entered filesize from bytes to megabytes by dividing it up (1024/1024)
                FileSizeTextBox.Text = ConvertFileSizeToUserInput(Convert.ToInt64(fileSizeCriteria.Value));

                ListItem fileSizeListItem = FileSizeDropDownList.Items.FindByValue(fileSizeCriteria.CompareType.ToString());
                if (fileSizeListItem != null)
                {
                    FileSizeDropDownList.SelectedIndex = -1;
                    FileSizeTextBox.Attributes.Remove("disabled");
                    fileSizeListItem.Selected = true;
                }
            }

            //Select production date dropdowns
            FromDayDropDownList.SafeSelectValue(finder.FromProductionDay);
            FromMonthDropDownList.SafeSelectValue(finder.FromProductionMonth);
            FromYearDropDownList.SafeSelectValue(finder.FromProductionYear);
            ToDayDropDownList.SafeSelectValue(finder.ToProductionDay);
            ToMonthDropDownList.SafeSelectValue(finder.ToProductionMonth);
            ToYearDropDownList.SafeSelectValue(finder.ToProductionYear);


            //Select orientation
            ListItem li = OrientationDropDownList.Items.FindByValue(finder.Orientation.ToString().ToLower());

            if (li != null)
            {
                OrientationDropDownList.SelectedIndex = -1;
                li.Selected = true;
            }
        }