How to change the LinkButton forecolor in C#?
<p>I am doing project for a mobile company.<br>
Where the home page will display all the mobile's with LinkButton<br>
which will take us to respective mobile's detail when we clicks that.<br>
the thing is i want to change the forecolor of the selected linkbutton using C# codings.  </p>

<p>Eg :   </p>

<p>asp.net :   </p>

<pre><code>&lt;asp:LinkButton ID="MobileLinkButton" runat="Server" OnClick="MobileDetailslinkButton_Onclick" ForeColor="White" /&gt;
</code></pre>

<p>C# :  </p>

<blockquote>
  <p>protected void MobileDetailslinkButton_Onclick(object sender, EventArgs e)<br>
      {<br>
          Response.Redirect("~/MobileDetails.aspx");<br>
          MobileLinkButton.ForeColor = System.Drawing.Color.Yellow;  </p>

<pre><code>}
</code></pre>
</blockquote>

<p>But the ForeColor is not changing,but the rest is working good.</p>

<p>Note : these linkbutton's are all in MasterPage which is been used in my whole project's all the pages.</p>
