title: How to change the css of a dynamically created link button in repeater
body: <p>I am loading link button in <li> in a repeater. i want to change the particular link button css class when the user clicks it.</p>
  
  <pre><code>    &lt;asp:Repeater ID="moviedaterepeater" runat="server"&gt;
          &lt;ItemTemplate&gt;
              &lt;li&gt;
  
                  &lt;asp:LinkButton ID="theatrelinkbutton" runat="server" Text='&lt;%#Eval("datetext") %&gt;' CausesValidation="false" CommandName='&lt;%#Eval("datevalue") %&gt;' CommandArgument='&lt;%#Eval("datetext") %&gt;' OnCommand="moviedate_Command"&gt;&lt;/asp:LinkButton&gt;
  
              &lt;/li&gt;
          &lt;/ItemTemplate&gt;
  
      &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>how to do it i tried with the itemdatabound</p>
  
  <pre><code>     protected void moviedaterepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
  {
      if (e.Item.ItemType == ListItemType.Item)
      {
          //Session["linkbuttonid"] = "ctl00_ContentPlaceHolder1_moviedaterepeater_ctl01_theatrelinkbutton";
          ////Label lbl = (Label)e.Item.FindControl("Label1");
          //LinkButton link = (LinkButton)e.Item.FindControl(Session["linkbuttonid"].ToString());
          //link.CssClass = "active";
      }
  }
  </code></pre>
  
  <p>but i want to change the value based on the text of the linkbutton .</p>