Esempio n. 1
0
        public void SetFaviconReference(FaviconReference reference)
        {
            // Don't fail if it cannot be set.

            if (base.Master != null)
            {
                Master.SetFaviconReference(reference);
            }
        }
Esempio n. 2
0
        void IMasterPage.SetFaviconReference(FaviconReference reference)
        {
            var masterPage = Master;

            if (masterPage != null)
            {
                masterPage.SetFaviconReference(reference);
            }
        }
Esempio n. 3
0
        public static string Favicon <THtmlHelper>(this THtmlHelper htmlHelper, FaviconReference reference)
        {
            if (reference == null)
            {
                return(string.Empty);
            }

            var builder = new TagBuilder("link");

            builder.MergeAttribute("rel", "shortcut icon");
            builder.MergeAttribute("type", "image/x-icon");
            builder.MergeAttribute("href", reference.Url.ToString());
            return(builder.ToString(TagRenderMode.StartTag));
        }
Esempio n. 4
0
 void IMasterPage.SetFaviconReference(FaviconReference reference)
 {
     CheckNotRendered();
     _headInfo.FaviconReference = reference;
 }
Esempio n. 5
0
 public void SetFaviconReference(FaviconReference reference)
 {
 }