title: Dynamically changing css style in c#?
body: <p>I have some link buttons in which I am dynamically adding a style to it.  I am doing the following in a method:</p>
  
  <pre><code>LinkButton lb = new LinkButton();
  lb.Style["font-weight"] = "bold";
  </code></pre>
  
  <p>When the another link is clicked, it should unbold the link button that is bold and bold the currently clicked one, so in the method that is doing this, I have tried:</p>
  
  <pre><code>lb.Style["font-weight"] = "none";
  </code></pre>
  
  <p>The above does not work though, the previously selected link stays bold.</p>
  
  <p>I just realized the possible problem. I am creating multiple links and what it looks like is that since all the links are named lb, it never removes the bold.  I am trying to think of a way for it to remember the previously selected link and to only unbold that one.</p>