private void BindRepeater() { var resultToShow = Wiki.GetFiles(); UpdateHasFilesToDelete(resultToShow); HasFiles = resultToShow.Count > 0; if (HasFiles) { rptFilesList.DataSource = resultToShow; rptFilesList.DataBind(); } else { var emptyScreenControl = new EmptyScreenControl { ImgSrc = WebImageSupplier.GetAbsoluteWebPath("wikilogo150.png", WikiManager.ModuleId), Header = WikiResource.EmptyScreenWikiFilesCaption, Describe = WikiResource.EmptyScreenWikiFilesText, }; if (CanUpload) { emptyScreenControl.ButtonHTML = String.Format("<a class='link underline blue plus' href='javascript:ShowUploadFileBox();'>{0}</a>", WikiResource.menu_AddNewFile); } EmptyContent.Controls.Add(emptyScreenControl); } }
private void BindRepeater() { List <File> resultToShow = Wiki.GetFiles(); UpdateHasFilesToDelete(resultToShow); rptFilesList.DataSource = resultToShow; rptFilesList.DataBind(); }
private void BindListFiles() { rptListFiles.DataSource = Wiki.GetFiles(); rptListFiles.DataBind(); }