Exemplo n.º 1
0
 public static string GetScriptResource(string name)
 {
     return(string.Format("<script type=\"text/javascript\" src=\"{0}\"></script>", ContentResolver.GetResourcePath("scripts/" + name)));
 }
Exemplo n.º 2
0
 public static string GetImageResource(string name)
 {
     return(ContentResolver.GetImageResource(name, string.Empty, string.Empty));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 public static string GetStyleResource(string name)
 {
     return(string.Format("<link rel=\"stylesheet\" type=\"text/css\" href=\"{0}\" />", ContentResolver.GetResourcePath("styles/" + name)));
 }