asp.net - How to change a HyperLink text color programmatically

HyperLink text, link color
HyperLinkForeColor.aspx

<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        HyperLink1.ForeColor = System.Drawing.Color.SeaGreen;
    }
    protected void Button2_Click(object sender, System.EventArgs e)
    {
        HyperLink1.ForeColor = System.Drawing.Color.Crimson;
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to set, change HyperLink ForeColor (text, link color)</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Navy">HyperLink Example: ForeColor</h2>
        <asp:HyperLink 
             ID="HyperLink1"
             runat="server"
             Text="Go To ListBox Skin Page"
             Font-Size="Larger"
             Font-Italic="true"
             Font-Bold="true"
             NavigateUrl="~/ListBox/ListBoxSkin.aspx"
             >
        </asp:HyperLink>
        <br /><br />
        <asp:Button 
             ID="Button1" 
             runat="server"
             ForeColor="SaddleBrown"
             Text="HyperLink ForeColor SeaGreen"
             Height="45"
             OnClick="Button1_Click"
             Font-Bold="true"
             />
        <asp:Button 
             ID="Button2" 
             runat="server"
             ForeColor="SaddleBrown"
             Text="HyperLink ForeColor Crimson"
             Height="45"
             OnClick="Button2_Click"
             Font-Bold="true"
             />
    </div>
    </form>
</body>
</html>
More asp.net examples