find selected item in custom paging
<p>I wrote custom paging to a repeater. Here below is code. When I clicked a LinkButton, How to set selected it or how to set css class?</p>

<p>Firstly I tried to set css class in lbl_Click function like this <code>lnk.CssClass = "classname";</code>  On every attempt, It sets css class all clicked linkbutton.</p>

<pre><code>private void CreatePagingControl()
    {                           
         for (int i = 0; i &lt; pages; i++)
         {
            LinkButton lnk = new LinkButton();
            lnk.Click += new EventHandler(lbl_Click);
            lnk.ID = "lnkPage" + (i + 1).ToString();
            lnk.Text = (i + 1).ToString();
            plcPaging.Controls.Add(lnk);
            Label spacer = new Label();
            spacer.Text = "&amp;nbsp;|&amp;nbsp;";
            plcPaging.Controls.Add(spacer);
         }            
    }

    void lbl_Click(object sender, EventArgs e)
    {
        LinkButton lnk = sender as LinkButton;
        int currentPage = int.Parse(lnk.Text);
        int take = currentPage * 15;
        int skip = currentPage == 1 ? 0 : take - 15;
        FetchData(take, skip);
    }
</code></pre>

<p>aspx</p>

<pre><code>   &lt;asp:PlaceHolder ID="plcPaging" runat="server" /&gt;
</code></pre>
