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 Can't find a link button in a repeater but I do not think it will work in this case. Here is my code:
<asp:Repeater ID="rptList" runat="server" EnableViewState="false" DataSourceID="SqlDataSource3">
<ItemTemplate>
<div>
<p>
<b>Title: </b> <asp:LinkButton ID="lbnCookieVar" OnClick="lbnCookieVar_Click" Text='<%# Eval("Job_Title")%>' runat="server" /> <br />
<b>Status: </b><%# Eval("Status")%><br />
<b>Department: </b><%# Eval("Department")%><br />
<b>Date Position Available: </b><%# Eval("Date_Position_Available")%><br />
</p>
</div>
</ItemTemplate>
</asp:Repeater>
here is the code behind
protected void lbnCookieVar_Click(object sender, EventArgs e)
{
Session["Data"] = lbnCookieVar.Text;
Response.Redirect("Application.aspx");
}