title: Rowindex of gridview by using Javascript
body: <p>I tried a lot of combinations to be able to get rowIndex in below code, What should be the written to below "THIS IS WHERE I WANT TO PASS ROWINDEX " part.</p>
  
  <pre><code>            &lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                  AutoGenerateColumns="False" DataKeyNames="Id,BookName" DataSourceID="SqlDataSource1"
                  Width="800px" CssClass="Gridview"&gt;
                  &lt;Columns&gt;
                      &lt;asp:TemplateField HeaderText="BookName" SortExpression="BookName" ItemStyle-Width="250px"&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:HyperLink ID="hlk_Bookname" runat="server" Enabled='&lt;%# !Convert.ToBoolean(Eval("Reserve")) %&gt;'
                                  Text='&lt;%# Bind("BookName") %&gt;' NavigateUrl='javascript:doYouWantTo("THIS IS WHERE I WANT TO PASS ROWINDEX ")'&gt;&lt;/asp:HyperLink&gt;
                          &lt;/ItemTemplate&gt;                            
                      &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>..
  ..
  ..</p>