>Can you set individual hyperlink visited colors in *any* other platform ?
>You may be asking for what no platform can deliver.
>Juan T. Llibre, asp.net MVP
>news:ubwWCnhgHHA.4892@TK2MSFTNGP03.phx.gbl...
Quote:
>>Thanks for the examples but A:link { color: #265CC0;
>>text-decoration:none; } will as I understand it set the color on all
>>links on a webpage. This is not how I want it. I want only to set the
>>color of visited HyperLinkField (not HyperLink) links with in a GridView
>>on my webpage.
>>>
>>any suggestions??
>>>
>>Jeff
>>>
>>>
>>>
>>>
>>"Juan T. Llibre" <nomailreplies@nowhere.comwrote in message
>>news:uZdBqDhgHHA.4872@TK2MSFTNGP03.phx.gbl...
>>>re:
>>>>I don't see how to apply the example you provided to my scenario
>>>For example :
>>>>
>>>A:link { color: #265CC0; text-decoration:none; }
>>>A:visited { color: #000080; text-decoration:none; }
>>>A:active { color: #265CC0; cursor:hand; text-decoration:none; }
>>>A:hover { color: #4D9FE1; cursor:hand; text-decoration:"underline"; }
>>>>
>>>Take a look at :
>>>>
>>>
http://asp.net.do/faq/default.aspx
>>>>
>>>That's the css code I use to change the link colors at that FAQ site.
>>>Of course, you can change those colors to any other colors you want
>>>>
>>>After you visit the page, copy the default.css file from your browser's
>>>cache and use it as guidance.
>>>All I do to include it is use this code in the masterpage :
>>>>
>>><link href="default.css" type="text/css" rel="stylesheet" />
>>>>
>>>Summarizing, you don't have to do anything special or different.
>>>Just use css styles as you'd use them in any other web page.
>>>>
>>>The HyperLink object behaves like a standard link and picks up css
>>>styles specified for links.
>>>>
>>>>
>>>>
>>>>
>>>Juan T. Llibre, asp.net MVP
>>>asp.net faq :
http://asp.net.do/faq/
>>>foros de asp.net, en espaņol :
http://asp.net.do/foros/
>>>===================================
>>>"Jeff" <it_consultant1@hotmail.com.NOSPAMwrote in message
>>>news:eOrWFwggHHA.4188@TK2MSFTNGP02.phx.gbl...
>>>>Thanks for that example but I'm wondering about setting the visited
>>>>color of a HyperLinkField object (not a HyperLink object) in a
>>>>GridView. I don't see how to apply the example you provided to my
>>>>scenario (okay I'm a newbie).
>>>>>
>>>>This is the markup of the HyperLinkField field in my webpage
>>>><asp:HyperLinkField HeaderText="Subject" Text="Subject"
>>>>DataTextField="Subject"
>>>>DataNavigateUrlFields="Id"
>>>>DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}"
>>>>HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
>>>>>
>>>>Jeff
>>>>>
>>>>>
>>>>>
>>>>"Juan T. Llibre" <nomailreplies@nowhere.comwrote in message
>>>>news:%23zLZdqggHHA.4980@TK2MSFTNGP02.phx.gbl.. .
>>>>><table>
>>>>><tr>
>>>>><td class="url">
>>>>><asp:HyperLink ID="1" runat="server" NavigateUrl="some.aspx"
>>>>> >Some</asp:HyperLink>
>>>>></td>
>>>>></tr>
>>>>></table>
>>>>>>
>>>>>Then, in your style sheet :
>>>>>>
>>>>>.url a {
>>>>>font-family: Arial;
>>>>>font-size: 9px;
>>>>>color: navy;
>>>>>text-decoration: none;
>>>>>}
>>>>>>
>>>>>.url a:visited {
>>>>>color: red;
>>>>>}
>>>>>>
>>>>>...or any variation of the above.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Juan T. Llibre, asp.net MVP
>>>>>asp.net faq :
http://asp.net.do/faq/
>>>>>foros de asp.net, en espaņol :
http://asp.net.do/foros/
>>>>>===================================
>>>>>"Jeff" <it_consultant1@hotmail.com.NOSPAMwrote in message
>>>>>news:uOXATZggHHA.284@TK2MSFTNGP05.phx.gbl.. .
>>>>>>ASP.NET 2.0
>>>>>>>
>>>>>>I'm wondering how to set the color of a visited HyperLinkField (the
>>>>>>link text) in a GridView??
>>>>>>>
>>>>>>Here is the markup of the HyperLinkField I have problems with:
>>>>>><asp:HyperLinkField HeaderText="Subject" Text="Subject"
>>>>>>DataTextField="Subject" DataNavigateUrlFields="Id"
>>>>>>DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}"
>>>>>>HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle"
>>>>>>/>
>>>>>>>
>>>>>>Okay, I've already tryed this:
>>>>>>a:visited{
>>>>>>color:green;
>>>>>>}
>>>>>>I cannot use this css code because it set the color on all visited
>>>>>>link on my webpage. That is something I don't want. I want to set
>>>>>>the color of visited links within a GridView only.
>>>>>>>
>>>>>>I also tryed this:
>>>>>>GridView a:visited
>>>>>>{
>>>>>> color:Orange;
>>>>>>} -but that didn't change the color within my GridView, infact no
>>>>>>links on my webpage was affected by this css class
>>>>>>>
>>>>>>Any suggestions?
>>>>>>>
>>>>>>Best Regards!
>>>>>>>
>>>>>>Jeff
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>