Exemple #1
0
 public HtmlLink CreateFaviconLink(string FilePath)
 {
     var link = new HtmlLink();
     link.Attributes.Add("rel", "shortcut icon");
     link.Href = link.ResolveUrl(FilePath);
     return link;
 }
Exemple #2
0
        public HtmlLink CreateCssLink(string cssFilePath, string media)
        {
            var link = new HtmlLink();
            link.Attributes.Add("type", "text/css");
            link.Attributes.Add("rel", "stylesheet");
            link.Href = link.ResolveUrl(cssFilePath);
            if (string.IsNullOrEmpty(media))
            {
                media = "all";
            }

            link.Attributes.Add("media", media);
            return link;
        }