title: Select row in GridView with JavaScript
body: <p>i've a few problem with GridView in asp.net ,</p>
  
  <pre><code>&lt;asp:GridView 
      ID="gridAdministrator" 
      runat="server" 
      AllowSorting="true" 
      AutoGenerateColumns="false" 
      AllowPaging="true" 
      OnRowDeleting="gridAdministrator_RowDeleting" &gt;
      &lt;Columns&gt;
          &lt;asp:BoundField DataField="Id" HeaderText="ID" ReadOnly="true" /&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name" /&gt;
          &lt;asp:BoundField DataField="Phone" HeaderText="Phone" /&gt;
          &lt;asp:BoundField DataField="Address" HeaderText="Address" /&gt;
          &lt;asp:BoundField DataField="City" HeaderText="City" /&gt;
          &lt;asp:BoundField DataField="Mail" HeaderText="Mail" /&gt;
          &lt;asp:BoundField DataField="Password" HeaderText="Password" /&gt;
          &lt;asp:TemplateField&gt;
              &lt;ItemTemplate&gt;
                  &lt;a href="#" onclick="ShowPopUpAdmin();"&gt;Edit&lt;/a&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:CommandField ShowDeleteButton="true" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>when i click Edit link, its will show up the edit AJAX popup panel, but how can i now, which row that being clicked? Any solution? Please help me.</p>