Esempio n. 1
0
        private void ItemList_DataBind()
        {
            if (!DataEval.IsEmptyQuery(_category_selected))
            {
                RadTabStrip_Commands.Visible = true;

                PhotoMgr myPhotoMgr = new PhotoMgr();
                ListView_ItemList.DataSource   = myPhotoMgr.Get_Photos(DataEval.QuoteText(_category_selected), "Photo_Title", "ASC");
                ListView_ItemList.DataKeyNames = new string[] { "PhotoID" };
                ListView_ItemList.DataBind();

                CheckBox chk_SelectAll = (CheckBox)ListView_ItemList.FindControl("chk_SelectAll");
                if (chk_SelectAll != null)
                {
                    chk_SelectAll.Checked = false;
                }
            }
        }
        private void ItemList_DataBind()
        {
            if (!DataEval.IsEmptyQuery(_category_selected))
            {
                RadTabStrip_Commands.Visible = true;

                Lib.ScriptMgr myScriptMgr = new Lib.ScriptMgr();
                ListView_ItemList.DataSource   = myScriptMgr.Get_Scripts(_category_selected, null);
                ListView_ItemList.DataKeyNames = new string[] { "ScriptID" };
                ListView_ItemList.DataBind();

                CheckBox chk_SelectAll = (CheckBox)ListView_ItemList.FindControl("chk_SelectAll");
                if (chk_SelectAll != null)
                {
                    chk_SelectAll.Checked = false;
                }
            }
        }