473,500 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maintain color of visited links

1 New Member
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.
Jun 27 '12 #1
1 2005
kadghar
1,295 Recognized Expert Top Contributor
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.
Jun 30 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
3838
by: Rickard Lindhé | last post by:
Hey. I'm experiencing a problem using a css stylesheet on my homepage (http://w1.193.telia.com/~u19305515/test/testis.html). As you can see, the link works according to the stylesheet when not...
18
10715
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand...
1
1479
by: craig.lloyd | last post by:
Hi all, Can anyone tell me how I can display details of the 3 most recently visited links onto my webpage... i.e. My webpage has many links off to various documents etc. I would like to place...
4
3229
by: Matt Stanley | last post by:
I'm experiencing frustration with our site not consistently displaying visited links. We use CSS, and the links on some pages work as intended, but others do not. To see an example of what I'm...
0
1405
by: PsyBorg | last post by:
This is not entirely a PHP question although it is based in PHP. I have been creating a site, where I want the visitors to see the visited links as "Crossed Out" using CSS. However, I also want...
5
1922
by: senaka | last post by:
Hi, I need to identify the visited links on a clients machine dynamically. When he/she loads my page i need to know what links were visited during the previous session(s). This is not regarding...
1
1598
kamill
by: kamill | last post by:
How can i show the path of visited links on each page, suppose from home page i have visited about_us then it should be as below home->about_us.htm Then suppose i have visited to contact_us.htm...
1
4498
by: rmiddelburg | last post by:
Hi all, how can I clear my a:visited links when a use a:active before or during an a:activate action. Richard
9
8599
by: momee80 | last post by:
Hi, I'm encountering a problem with IE 7 that my visited links do not keep their colors changed when they are revisited. i.e, when I reload the page, the links should change their colors so that I...
2
2879
by: jkizmannRU09 | last post by:
I know how to adjust the look of visited links with a CSS stylesheet, but how would one create individual variations among a set of links? For example, say I have three links, all initially...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.