private void Control_Init()
        {
            if (DataEval.IsEmptyQuery(_ebay_itemlistid))
            {
                MultiView_ItemList.SetActiveView(View_New);
            }
            else
            {
                MultiView_ItemList.SetActiveView(View_ItemList);

                if (Request.QueryString["PageLink"] == "Disable")
                {
                    ListView_Ebay_ItemList.Enabled = false;
                }

                // Init List View
                ListView_Ebay_ItemList.GroupItemCount = _repeatcolumn;

                Lib.EbayMgr myEbayMgr = new Lib.EbayMgr();

                ListView_Ebay_ItemList.DataSource   = myEbayMgr.Get_Ebay_Items(_categoryid, _ebay_listtype, _sortorder, _orientation, "1", "1", _totalnumber, _ebay_itemdetailurl);
                ListView_Ebay_ItemList.DataKeyNames = new string[] { "Ebay_ItemID" };

                string _path, _altpath, _separator;
                switch (_itemtemplate)
                {
                case "Default":
                    _path = "~/App_Control_Style/Nexus_Ebay/Templates/ItemList_Default.ascx";
                    break;

                case "Custom":
                    _path = _itemtemplateurl;
                    break;

                default:
                    _path = "~/App_Control_Style/Nexus_Ebay/Templates/ItemList_Default.ascx";
                    break;
                }

                _altpath   = Get_ItemTemplatePath(_path, _path, "_Alt");
                _separator = Get_ItemTemplatePath(_path,
                                                  "~/App_Control_Style/Nexus_Ebay/Templates/ItemList_Default_Separator.ascx",
                                                  "Separator");

                ListView_Ebay_ItemList.ItemTemplate            = Page.LoadTemplate(_path);
                ListView_Ebay_ItemList.AlternatingItemTemplate = Page.LoadTemplate(_altpath);
                ListView_Ebay_ItemList.ItemSeparatorTemplate   = Page.LoadTemplate(_separator);
                try
                {
                    ListView_Ebay_ItemList.DataBind();
                }
                catch
                {
                    // Load Template Failed
                }

                DataPager_Ebay_ItemList.PageSize = _numberperpage;
                DataPager_Ebay_ItemList.Visible  = _enable_pager;
            }
        }
        private void Control_Init()
        {
            if (!DataEval.IsEmptyQuery(_ebay_itemlistid))
            {
                if (Request.QueryString["PageLink"] == "Disable")
                {
                    ListView_Ebay_ItemList.Enabled = false;
                }

                // Init List View
                ListView_Ebay_ItemList.GroupItemCount = _repeatcolumn;

                Lib.EbayMgr myEbayMgr = new Lib.EbayMgr();

                ListView_Ebay_ItemList.DataSource   = myEbayMgr.Get_Ebay_Items(_categoryid, _ebay_listtype, _sortorder, _orientation, "1", "1", _totalnumber, _ebay_itemdetailurl);
                ListView_Ebay_ItemList.DataKeyNames = new string[] { "Ebay_ItemID" };

                Core.Tools.AppItemTemplates myItemTemplate = new Core.Tools.AppItemTemplates();

                switch (_itemtemplate)
                {
                case "Default":
                    myItemTemplate.ItemTemplatePath = "~/App_Control_Style/Nexus_Ebay/Templates/ItemList_Default.ascx";
                    break;

                case "Custom":
                    myItemTemplate.ItemTemplatePath = _itemtemplateurl;
                    break;

                default:
                    myItemTemplate.ItemTemplatePath = "~/App_Control_Style/Nexus_Ebay/Templates/ItemList_Default.ascx";
                    break;
                }

                myItemTemplate.Set_Separator("");
                myItemTemplate.Set_DataEmpty("");

                ListView_Ebay_ItemList.ItemTemplate            = Page.LoadTemplate(myItemTemplate.ItemTemplatePath);
                ListView_Ebay_ItemList.AlternatingItemTemplate = Page.LoadTemplate(myItemTemplate.AltPath);

                if (!DataEval.IsEmptyQuery(myItemTemplate.Separator))
                {
                    ListView_Ebay_ItemList.ItemSeparatorTemplate = Page.LoadTemplate(myItemTemplate.Separator);
                }

                if (!DataEval.IsEmptyQuery(myItemTemplate.DataEmpty))
                {
                    ListView_Ebay_ItemList.EmptyDataTemplate = Page.LoadTemplate(myItemTemplate.DataEmpty);
                }

                try
                {
                    ListView_Ebay_ItemList.DataBind();
                }
                catch
                {
                    // Load Template Failed
                }

                DataPager_Ebay_ItemList.PageSize = _numberperpage;
                DataPager_Ebay_ItemList.Visible  = _enable_pager;
            }
        }