Maintain color of visited links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyam20ti
    New Member
    • Jun 2012
    • 1

    Maintain color of visited links

    I have a asp.net 2.0 web application.
    There is Datagrid with many columns.one of the column is a template column with Hyperlink.
    When the user clicks on the hyperlink, a popup window is opened and the hyperlink is changed to a visited link.
    But when the user clicks on Refresh button available on the page, the hyperlink color changed to blue(as a non-visited link)
    Please help me how to maintain the visited non-visited state even after postback.
  • kadghar
    Recognized Expert Top Contributor
    • Apr 2007
    • 1302

    #2
    Remember that whenever you put an asp object, it'll be generated everytime the page is loaded, so the visited link will be disposed and this one will be a new hyperlink.

    if you want to mantain it while the session is oppened, emulate it: create a variable session where you'll remember which hyperlinks should be purple, and color them.

    Comment

    Working...