//--------------------------------------------------------- //LoadFiles //--------------------------------------------------------- protected void LoadFiles() { if (ItemID > 0) { //Photos List <ItemsFilesEntity> list = ItemsFilesFactory.GetAll(ItemID, ItemFileTypes.Video); OurLists.LoadDataList <ItemsFilesEntity>(list, dlVideosPhotos, "FileID"); } else { this.Visible = false; } }
//----------------------------------------------- #endregion #region --------------LoadList-------------- //--------------------------------------------------------- //LoadList //--------------------------------------------------------- protected void LoadList() { if (!string.IsNullOrEmpty(Request.QueryString["ID"])) { int itemID = Convert.ToInt32(Request.QueryString["ID"]); List <ItemsFilesEntity> photosList = ItemsFilesFactory.GetAll(itemID, FileType); OurLists.LoadDataList <ItemsFilesEntity>(photosList, dlPhotos, "FileID"); } else { Response.Redirect("/Admin/"); } }
//----------------------------------------------- #endregion #region --------------LoadList-------------- //--------------------------------------------------------- //LoadList //--------------------------------------------------------- protected void LoadList() { int itemID = Convert.ToInt32(ddlItems.SelectedValue); if (itemID > 0) { List <ItemsFilesEntity> photosList = ItemsFilesFactory.GetAll(itemID, FileType); OurLists.LoadDataList <ItemsFilesEntity>(photosList, dlPhotos, "FileID"); } else { dlPhotos.Visible = false; } }
//--------------------------------------------------------- //LoadPhotos //--------------------------------------------------------- protected void LoadPhotos() { if (ItemID > 0) { //Photos List <ItemsFilesEntity> photosList = ItemsFilesFactory.GetAll(ItemID, ItemFileTypes.Photo); OurLists.LoadDataList <ItemsFilesEntity>(photosList, dlPhotos, "FileID"); /* //Maps * List<ItemsFilesEntity> mapsList = ItemsFilesFactory.GetAll(itemid, ItemFileTypes.Map); * OurLists.LoadDataList<ItemsFilesEntity>(mapsList, dlMaps, "FileID");*/ } else { this.Visible = false; } }
//----------------------------------------------- #endregion #region --------------LoadList-------------- //--------------------------------------------------------- //LoadList //--------------------------------------------------------- protected void LoadList() { if (!string.IsNullOrEmpty(Request.QueryString["ID"])) { int itemID = Convert.ToInt32(Request.QueryString["ID"]); List <ItemsFilesEntity> photosList = ItemsFilesFactory.GetAll(itemID, FileType); if (photosList != null && photosList.Count > 0) { rPhotos.DataSource = photosList; //rPhotos.DataKeyField = "FileID"; rPhotos.DataBind(); rPhotos.Visible = true; } else { rPhotos.Visible = false; } } else { Response.Redirect("/Admin/"); } }
//----------------------------------------------- #endregion #region --------------LoadList-------------- //--------------------------------------------------------- //LoadList //--------------------------------------------------------- protected void LoadList() { int itemID = Convert.ToInt32(ddlItems.SelectedValue); if (itemID > 0) { List <ItemsFilesEntity> photosList = ItemsFilesFactory.GetAll(itemID, FileType); if (photosList != null && photosList.Count > 0) { rPhotos.DataSource = photosList; //rPhotos.DataKeyField = "FileID"; rPhotos.DataBind(); rPhotos.Visible = true; } else { rPhotos.Visible = false; } } else { rPhotos.Visible = false; } }