Button Click and LinkButton Click
<p>I am having a strange day! I am trying to access values inside the Datagrid control. There are textboxes in each row of the Datagrid control. If I use a asp.net button control outside the datagrid control I can access all the values. But if I use LinkButton outside the datagrid control then I cannot access any value. </p>

<p>I have to use LinkButton.</p>

<p>UPDATE 1: Code </p>

<pre><code> //This works 
         Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
                    Dim indexes() As Integer = dgReceipts.SelectedIndexNumbers
                End Sub

        //This does not work and I get 0 items in the SelectedIndexNumbers
                Protected Sub LinkButtonUpdateReceipts_Click(sender As Object, e As EventArgs) Handles LinkButtonUpdateReceipts.Click
                    Dim indexes() As Integer = dgReceipts.SelectedIndexNumbers
                End Sub

        &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
             &lt;c1:LinkButton ID="LinkButtonUpdateReceipts" runat="server" Text="Update Totals" Icon="images/go-blue-right.gif"&gt;&lt;/c1:LinkButton&gt;
</code></pre>
