View Single Post
  #4 (permalink)  
Old December 5th, 2011, 01:57 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

indeed. Take a look at this:

Code:
 
CodeFile="Default.aspx.vb
and this
Code:
 
<a href="Default.aspx" class="style1">
You run this code in a page called Default.aspx. By browsing to it, you visit it. The link will then be rendered with a:visited class according to CSS rules.

Change the link something that doesn't exist yet or that you haven't visited yet (Whatever.aspx should do the trick) and it'll work.

You may also need to remove the inline style1....

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
jkoyle (December 5th, 2011)