/// <include file='doc\StyleBuilderPage.uex' path='docs/doc[@for="StyleBuilderPage.GetBaseUrl"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        protected string GetBaseUrl()
        {
            string baseUrl = "";
            ISite  site    = Site;

            if (site != null)
            {
                IUrlContext context = (IUrlContext)site.GetService(typeof(IUrlContext));

                if (context != null)
                {
                    baseUrl = context.GetUrl();
                }
            }

            return(baseUrl);
        }
Esempio n. 2
0
 public void Retrieve(int id)
 {
     Url = _context.GetUrl(id);
 }