コード例 #1
0
 public static string GetScriptResource(string name)
 {
     return(string.Format("<script type=\"text/javascript\" src=\"{0}\"></script>", ContentResolver.GetResourcePath("scripts/" + name)));
 }
コード例 #2
0
 public static string GetImageResource(string name)
 {
     return(ContentResolver.GetImageResource(name, string.Empty, string.Empty));
 }
コード例 #3
0
 public static string GetImageResource(string name, string alt, string title)
 {
     return(string.Format("<img src=\"{0}\" alt=\"{1}\" title=\"{2}\" />", ContentResolver.GetResourcePath("images/" + name), alt, title));
 }
コード例 #4
0
 public static string GetStyleResource(string name)
 {
     return(string.Format("<link rel=\"stylesheet\" type=\"text/css\" href=\"{0}\" />", ContentResolver.GetResourcePath("styles/" + name)));
 }