Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                
, 
   <%# GetFileLength(Container.CurrentPage["varFilePath"].ToString())%> 
    
aspx.cs
        public string GetFileLength(string FilePath)
        {
            string _getFileInfo = "";
            try
            {
                FileInfo finfo = new FileInfo(Server.MapPath(FilePath));
                long FileInKB = finfo.Length / 1024;
                _getFileInfo = FileInKB.ToString();
            }
            catch (NotSupportedException)
            {
            }
            catch (ArgumentException)
            {
            }
            catch (IOException)
            {
            }
            catch(HttpException)
            {
            }
            return _getFileInfo;
        }
                         
    
    
    
    <%#getlink(container.currentpage)%>
    , (<%# container.currentpagedatepublication ="null?((DateTime)Container.CurrentPage["DatePublication"]).ToString("d"):" no publication data available>)
    File Size:  <%#container.currentpage["varfilepath"]%>  kb
%#container.currentpage["varfilepath"]%>%#>%#getlink(container.currentpage)%> 
ascx <%# getfilelengthcontainer.currentpage> kb ascx.cs public string GetFileLength(PageData pdFileInfo) { FileInfo fi = new FileInfo(pdFileInfo.Property["varFilePath"].ToString()); return fi.Length.ToString(); } %#>Any better ideas anyone? Thanks. Victor