public MasterPageObj GetById(string name)
        {
            MasterPageObj result = new MasterPageObj();
            MasterPageObjFilter filter = new MasterPageObjFilter();
            filter.Name = name;
            List<MasterPageObj> list = new MasterPagesObjManager().GetByFilter(filter);
            if (list.Count > 0)
                result = list[0];

            return result;
        }
Esempio n. 2
0
    private void loadDropMasterPages()
    {
        DropMasterPageFilter.Items.Clear();
        DropCurrMasterPage.Items.Clear();

        DropMasterPageFilter.Items.Add(new ListItem(Utility.GetLabel("LblSelectMasterPage", "Select masterpage"), ""));
        DropCurrMasterPage.Items.Add(new ListItem(Utility.GetLabel("LblUseBlobal", "Use global"), ""));

        Dictionary<string, string> recordList = new MasterPagesObjManager().GetList();
        foreach (KeyValuePair<string, string> item in recordList)
        {
            DropMasterPageFilter.Items.Add(new ListItem(item.Value, item.Key));
            DropCurrMasterPage.Items.Add(new ListItem(item.Value, item.Key));
        }
    }