using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Web; namespace CB.TVTrendChartData { public class TrendChartTemplate { public static string GetTrendChartTemplate(string url) { string path = AppDomain.CurrentDomain.BaseDirectory + "TrendChartTemplate\\" + url; try { if (File.Exists(path)) { return File.ReadAllText(path); } else { return ""; } } catch (Exception e) { return ""; } } } }