Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Handle multiple UltraFormattedLinkLabels on a single page
posted

I have a usercontrol that includes 4 ultraformattedlinklabels which activate different forms in the application.  However, I haven't been able to figure out how to control the AddToVisitedLinks in such a way that only the clicked link gets added.  Is there another way to do it?  Right now, clicking any link on the page causes them to all change their appearance to active unless I specifically set AddToVisitedLinks to false.  Is this something that can only be handled with DrawFilters, or is it possible to create multiple VisitedLinkCollections on the same page?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    The Visited links are based on the href. So if you have unique href values it should work okay. Since all your links act together, I assume they all have the same href. 

    What you can do is set the VisitedLinksManager property on each UltraFormattedLinkLabel to a new VisitedLinksCollection. That way they will each act independently.

     

Children
No Data