title: How to get items row id of repeater when user clicks rows linkbutton control
body: <p>I have a repeater, nested with Html table rows:</p>
  
  <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound"&gt;
                 &lt;HeaderTemplate&gt;
                     &lt;table id="grid"&gt;
                         &lt;thead&gt;
                             &lt;tr&gt;
                                 &lt;th&gt;SID&lt;/th&gt;
                                 &lt;th&gt;Start Date&lt;/th&gt;
                                 &lt;th&gt;End Date&lt;/th&gt;..
                                 &lt;th&gt;PDF Text&lt;/th&gt;
                             &lt;/tr&gt;
                         &lt;/thead&gt;
                         &lt;tbody&gt;
            &lt;/HeaderTemplate&gt;
            &lt;ItemTemplate&gt;
                &lt;tr&gt;
                    &lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem,"ID") %&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem,"startDate") %&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;%#DataBinder.Eval(Container.DataItem,"endDate") %&gt;&lt;/td
                    &lt;td&gt;
                        &lt;asp:LinkButton runat="server" ID="lbtnPDF" Text="PDF Full Text" OnClick="lbtnPDF_Click" /&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/ItemTemplate&gt;
                 &lt;FooterTemplate&gt;
                     &lt;/tbody&gt;
                     &lt;/table&gt;
                 &lt;/FooterTemplate&gt;
             &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>When the user clicks on linkbutton, I want to get the ID of that row of repeater item and will display the PDF file which is related to that ID, in another aspx page.</p>
  
  <p>I wrote on itemdatabound event :</p>
  
  <pre><code>protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
          {
              LinkButton lnkBtn = (LinkButton)e.Item.FindControl("lbtnPDF");
  
          }
  </code></pre>
  
  <p>How can I get column Id of repeater nested with an html table?</p>