title: How to pass in runtime a index of row for ListView?
body: <p>I have an question, On my page i have a ListView control, I also have a button that has CommandArgument. I know i can read and find a control in the ListView as :</p>
  
  <pre><code>ListView.Items[i].FindControl("controlname");
  </code></pre>
  
  <p>and my button in ListView is like that</p>
  
  <pre><code> asp:Button ID="WisdomButton" runat="server" CommandName="UpdateWisdom"  CommandArgument='&lt;%# need my index for Item[i] to post here %&gt;' 
                                    OnCommand="UpdateWisdom" Text="Update"   /&gt;
  </code></pre>
  
  <p>I want to add index value in runtime to the CommantParameter, so when i go to the Function onCommand i will know exactly from what row[i] i Need to get my controls from ListView.</p>
  
  <p>So my question is, how do i dinamicly add index of ListView.Rows[i] into CommmandArgument for the Button in runtime ?</p>
  
  <p>Thanks in advance.</p>