12345678910111213141516171819202122232425262728293031 |
- 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 + "TemplatePageRoot\\" + url;
- try
- {
- if (File.Exists(path))
- {
- return File.ReadAllText(path);
- }
- else
- {
- return "";
- }
- }
- catch (Exception e)
- {
- return "";
- }
- }
- }
- }
|