I suggest looking at the Page Collection object such as \Templates\Public\Units\Static\MainMenu.ascx.cs and using each page from DataFactory.Instance, check certain properties (e.g. MainBody) for the value returned from <EPiServer:Property ID="Property1" PropertyName="PageLink" runat="server" />
Obviously this is a bit general but something along these lines - although I KNOW this isn't the most effective piece of code - can someone else help out and suggest a better way?
Here you go:
using EPiServer;using EPiServer.Core;...PageReferenceCollection links = DataFactory.Instance.GetLinksToPages(new PageReference(4));
Thank you for that piece of code. Simple. Beautiful. Simply beautiful!