public static string DataType(int pageTemplateId, string columnName)
 {
     if (HttpContext.Current.Session["sec.DataType" + pageTemplateId + columnName] == null)
     {
         var columnDef = SessionService.ColumnDef(pageTemplateId, columnName);
         HttpContext.Current.Session["sec.DataType" + pageTemplateId + columnName] = columnDef != null?columnDef.DataType.ToString() : "";
     }
     return(HttpContext.Current.Session["sec.DataType" + pageTemplateId + columnName].ToString());
 }
        public static string ColumnName(int columnDefId)
        {
            if (SessionService.IsLocal)
            {
                HttpContext.Current.Session["sec.ColumnName" + columnDefId] = null;                         //xxx
            }
            if (columnDefId == 0)
            {
                return("");
            }
            if (HttpContext.Current.Session["sec.ColumnName" + columnDefId] == null)
            {
                var columnDef = SessionService.ColumnDef(columnDefId);

                HttpContext.Current.Session["sec.ColumnName" + columnDefId] = columnDef != null ? columnDef.ColumnName : "";
            }
            return(HttpContext.Current.Session["sec.ColumnName" + columnDefId].ToString());
        }