Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
public System.IO.FileInfo GetFileInfo(string FileName)
{
  string sFullPath = ((EPiServer.PageBase)this.Page).CurrentPage["MainScope"].ToString();
  if(sFullPath.Substring((sFullPath.Length-1),1) != @"\")
  {
    sFullPath += @"\";
  }
  System.IO.FileInfo fi = new System.IO.FileInfo(sFullPath + FileName);
  return fi;
}
                        
<%#Container.CurrentPage["PageRank"]%>
will return the rank of the hit which will be a value ranging from 0 to 1000.