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

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

            if (masterPage != null)
            {
                masterPage.SetFaviconReference(reference);
            }
        }
Example #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));
        }
Example #4
0
 void IMasterPage.SetFaviconReference(FaviconReference reference)
 {
     CheckNotRendered();
     _headInfo.FaviconReference = reference;
 }
Example #5
0
 public void SetFaviconReference(FaviconReference reference)
 {
 }