ASP.NET ListView containing LinkButtons - catching events
<p>I have a ListView in which the ItemTemplates are a series of LinkButtons.</p>

<p>The LinkButtons' text is populated from a db, this is done by simply binding the text property to the column I want.  This works well and fine, when ran the page displays the LinkButtons in a list with their correct names.</p>

<p>The problem is then selection, my objective is to 'expand' when each link is clicked, so more data about the item can be displayed.  The SelectedItemView is set up and if I go into the properties of the ListView and forcefully set the pre-selected index, it displays as I'd like it to.  I'd like the page to start off with nothing selected, so the SelectedIndex is set to -1 at start.</p>

<p>As far as I can tell the SelectedIndex isn't changing when I click each LinkButton in the ListView.  In the C# code, I have the method prototype defined:</p>

<pre><code>protected void ListView3_SelectedIndexChanged(object sender, EventArgs e)
</code></pre>

<p>Though a console write or break point set within that method is not being hit.  I'm not entirely sure why this method isn't being triggered, in the HTML code, with regards to this ListView I have:</p>

<pre><code>&lt;asp:ListView ID="ListView3" runat="server" DataSourceID="AccessDataSource1" 
        onselectedindexchanged="ListView3_SelectedIndexChanged"&gt;
</code></pre>

<p>As the opening tag.</p>

<p>The CommandName property of the LinkButton <em>IS</em> set to 'Select', so it should be changing the SelectedIndex and triggering the above method, from what I should tell, but it isn't.  It's not doing anything (no error).  Any advice?</p>

<p>Thanks</p>
