public void SetFaviconReference(FaviconReference reference) { // Don't fail if it cannot be set. if (base.Master != null) { Master.SetFaviconReference(reference); } }
void IMasterPage.SetFaviconReference(FaviconReference reference) { var masterPage = Master; if (masterPage != null) { masterPage.SetFaviconReference(reference); } }
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)); }
void IMasterPage.SetFaviconReference(FaviconReference reference) { CheckNotRendered(); _headInfo.FaviconReference = reference; }
public void SetFaviconReference(FaviconReference reference) { }