Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Something like this?
foreach (var child in children) { var pageUrl = UrlResolver.Current.GetUrl(child); }
If UrlResolver.Current is unavailable in EPiServer 7, then you could use something like this:
var pageUrl = ServiceLocator.Current.GetInstance<UrlResolver>().GetVirtualPath(pageLink);
Hi,
through below code i m able to get all the pages which are located under the root page.
but i want to find the URL of all the pages.
i m not able to figure out how to get the URL.
could you please help me on this.
PageDataCollection children = EPiServer.DataFactory.Instance.GetChildren(PageReference.RootPage);