<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Master Pages, Themes and Navigation Controls</title><link>http://forums.asp.net/139.aspx</link><description>Discussions of MasterPages, Themes, and other page-related features. &lt;A href="http://aspadvice.com/SignUp/list.aspx?l=164&amp;amp;c=30" target=_blank&gt;Email List&lt;/A&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: To change the visited link color of asp:hyperlink in gridview</title><link>http://forums.asp.net/thread/2658098.aspx</link><pubDate>Wed, 01 Oct 2008 23:22:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2658098</guid><dc:creator>rperetz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2658098.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2658098</wfw:commentRss><description>&lt;p&gt;sorry, but it did not work&lt;/p&gt;</description></item><item><title>Re: To change the visited link color of asp:hyperlink in gridview</title><link>http://forums.asp.net/thread/2464162.aspx</link><pubDate>Thu, 03 Jul 2008 05:47:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2464162</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2464162.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2464162</wfw:commentRss><description>&lt;p&gt;AFAIK, this is something you cannot express in your skin file. You need to do create a CSS file for your theme in which you can specify it.&lt;/p&gt;

&lt;p&gt;The trick is to use a pseudo-class for the a (anchor) selector. Example: &lt;br /&gt;&lt;/p&gt;

&lt;pre class="coloredcode"&gt;&lt;span class="sel"&gt;a&lt;/span&gt;:&lt;span class="sel"&gt;visited&lt;/span&gt; { color:&lt;span class="val"&gt; red&lt;/span&gt;; }&lt;/pre&gt;
&lt;p&gt;If you place this in your theme CSS file, this will color all visited links in your web red. Now, I assume you would like to control this a little better to only apply for the links in the GridView for example. To do this, you either set a CSS class for the asp:HyperLink, using the CssClass attribute, or you do the same with the GridView (set the CssClass). Either way, you use the name of the css class in your css rule. This is to scope the rule to only apply in a this specific context. Example:&amp;nbsp; &lt;br /&gt;&lt;/p&gt;

&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;asp:HyperLink&lt;/span&gt;&lt;span class="attr"&gt; CssClass=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;gwlink&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; NavigateUrl=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;.....&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/&lt;span class="tag"&gt;asp:HyperLink&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;Then in your CSS file, you do: &lt;br /&gt;&lt;/p&gt;
&lt;pre class="coloredcode"&gt;.&lt;span class="sel"&gt;gwlink a&lt;/span&gt;:&lt;span class="sel"&gt;visisted&lt;/span&gt; { color:&lt;span class="val"&gt; red&lt;/span&gt;; }&lt;/pre&gt;
&lt;p&gt;This will effectively render all visited links marked as gwlink in red.&lt;/p&gt;</description></item><item><title>To change the visited link color of asp:hyperlink in gridview</title><link>http://forums.asp.net/thread/2464020.aspx</link><pubDate>Thu, 03 Jul 2008 04:11:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2464020</guid><dc:creator>swapnasamsonvarkey</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2464020.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=139&amp;PostID=2464020</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using vb.net 2.0 . In my page i have an asp:Hyperlink field in the gridview. The value for the hyperlink is taking from the database. And it&amp;#39;s forecolour is set to green in the database..If i click on the link and then come back to this page it is not showing any visited color. i.e the color is still green even if that link is visited.&amp;nbsp; Can anyone tell me how to set the visited link color for this hyperlink. One more this i&amp;#39;m using master page in this page so to set style for this page i&amp;#39;m using &amp;quot;Themes&amp;quot; in the page directive.. Any one who knows the solution please help me...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>