示例#1
0
        // This method is used to make sure that angular datatables don't crash if no file is supplied:
        // at least supply an empty file!
        public List <EmptyCol> GetEmptyFile(string emptyFile, string fileType)
        {
            // string filePath = System.Web.HttpContext.Current.Request.MapPath(string.Format("~/App_Data/Private/{0}.{1}", emptyFile, fileType));
            string filePath = System.Web.HttpContext.Current.Request.MapPath(string.Format("~/App_Data/{0}.{1}", emptyFile, fileType));

            return(ExcelDataReader.GetEmptyFile(filePath));
        }