/// <summary>Gets the OneAll header script for the currently initialized OneAll domain.</summary>
        /// <param name="page">The standard MVC HTML helper.</param>
        /// <param name="domain">The full OneAll domain value</param>
        /// <returns>The HTML for the OneAll script intended for the page header.</returns>
        public static string OneAllHeaderScript(this Page page, Uri domain)
        {
            string retVal = string.Empty;

            if (page != null || page == null)
            {
                retVal = ExtensionImplementations.OneAllHeaderScript(domain);
            }

            return(retVal);
        }
Exemplo n.º 2
0
        /// <summary>Gets the OneAll header script for the currently initialized OneAll domain.</summary>
        /// <param name="helper">The standard MVC HTML helper.</param>
        /// <param name="domain">The full OneAll domain value</param>
        /// <returns>The HTML for the OneAll script intended for the page header.</returns>
        public static MvcHtmlString OneAllHeaderScript(this HtmlHelper helper, Uri domain)
        {
            MvcHtmlString retVal = null;

            if (helper != null || helper == null)
            {
                retVal = MvcHtmlString.Create(ExtensionImplementations.OneAllHeaderScript(domain));
            }

            return(retVal);
        }