link button in repeater to pass session variable
<p>I have a repeater listing out my custom data, now what I want to do is pass on a variable from one page to another using a asp:linkbutton. The problem I am having is that when I go to call my link button in the subroutine its not being recognized. I looked at <a href="http://stackoverflow.com/questions/7099485/cant-find-a-link-button-in-a-repeater">Can&#39;t find a link button in a repeater</a> but I do not think it will work in this case. Here is my code:</p>

<pre><code>    &lt;asp:Repeater ID="rptList" runat="server" EnableViewState="false" DataSourceID="SqlDataSource3"&gt;
&lt;ItemTemplate&gt;
    &lt;div&gt;
    &lt;p&gt;
    &lt;b&gt;Title: &lt;/b&gt; &lt;asp:LinkButton ID="lbnCookieVar" OnClick="lbnCookieVar_Click" Text='&lt;%# Eval("Job_Title")%&gt;' runat="server" /&gt; &lt;br /&gt;
    &lt;b&gt;Status: &lt;/b&gt;&lt;%# Eval("Status")%&gt;&lt;br /&gt;
    &lt;b&gt;Department: &lt;/b&gt;&lt;%# Eval("Department")%&gt;&lt;br /&gt;
    &lt;b&gt;Date Position Available: &lt;/b&gt;&lt;%# Eval("Date_Position_Available")%&gt;&lt;br /&gt;
    &lt;/p&gt;
    &lt;/div&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
</code></pre>

<p>here is the code behind</p>

<pre><code>     protected void lbnCookieVar_Click(object sender, EventArgs e)
{
    Session["Data"] = lbnCookieVar.Text;
    Response.Redirect("Application.aspx");
}
</code></pre>
