/// <summary>
        /// Changes the content in the content frame to the specified URL
        /// </summary>
        /// <param name="url"></param>
        public ClientTools ChangeContentFrameUrl(string url)
        {
            //don't load if there is no url
            if (string.IsNullOrEmpty(url))
            {
                return(this);
            }

            url = EnsureUmbracoUrl(url);

            RegisterClientScript(Scripts.ChangeContentFrameUrl(url));

            return(this);
        }
Exemple #2
0
        /// <summary>
        /// Changes the content in the content frame to the specified URL
        /// </summary>
        /// <param name="url"></param>
        public ClientTools ChangeContentFrameUrl(string url)
        {
            //don't load if there is no url
            if (string.IsNullOrEmpty(url))
            {
                return(this);
            }

            url = EnsureUmbracoUrl(url);

            if (url.Trim().StartsWith("~"))
            {
                url = IOHelper.ResolveUrl(url);
            }

            RegisterClientScript(Scripts.ChangeContentFrameUrl(url));

            return(this);
        }
Exemple #3
0
        /// <summary>
        /// Changes the content in the content frame to the specified URL
        /// </summary>
        /// <param name="url"></param>
        public ClientTools ChangeContentFrameUrl(string url)
        {
            //don't load if there is no url
            if (string.IsNullOrEmpty(url))
            {
                return(this);
            }

            if (url.StartsWith("/") && !url.StartsWith(IOHelper.ResolveUrl(SystemDirectories.Umbraco)))
            {
                url = IOHelper.ResolveUrl(SystemDirectories.Umbraco) + "/" + url;
            }

            if (url.Trim().StartsWith("~"))
            {
                url = IOHelper.ResolveUrl(url);
            }

            RegisterClientScript(Scripts.ChangeContentFrameUrl(url));

            return(this);
        }