title: Pass ID from GridView row to Javascript function
body: <p>The first commented line below is working with a hardcoded <code>ApplicantId</code>, and all I need is to make it work by passing the current <code>ApplicantId</code> column on the same gridrow.</p>
  
  <p>I've tried for many days now, and something like the second commented line does not work for me.
  Please help. </p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
  DataKeyNames="ApplicantID" &gt;
  &lt;Columns&gt;
  
  &lt;asp:TemplateField HeaderText="Select"&gt;
  &lt;ItemTemplate&gt;
  &lt;asp:CheckBox ID="CheckBox1" runat="server" /&gt;
  &lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  
  &lt;!-- works --&gt;
  &lt;asp:HyperLinkField NavigateUrl="javascript:popUp(3)" Text="Select" Target="_parent"/&gt;
  
  &lt;!-- doesn't work --&gt;
  &lt;asp:HyperLinkField NavigateUrl='"javascript:popUp("&lt;%# + DataBinder.Eval(GridView1.DataItem,"ApplicantId") %&gt; + ")"' Text="View" /&gt;
  
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>