title: How to pass a hidden field value on javascript function inside repeater control
body: <p>I tried a lot but couldn't figure it out. I wanted to pass data on my javascript function.
  I am saving data on hidden filed. what I want as soon I click on my button it will call javascript function &amp; pass my hidden field vlaue.</p>
  
  <pre><code>&lt;asp:Repeater ID="rptGallary" runat="server" &gt;
     &lt;ItemTemplate&gt;
        &lt;asp:HiddenField ID="hfsportsmanfeedid" runat="server" value='&lt;%# DataBinder.Eval(Container.DataItem,"SportsmanFeedId") %&gt;'/&gt;
        &lt;asp:Button ID="btnLike" runat="server" Text="Like" OnClientClick="Test("How to pass here"));" /&gt;
     &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>Thanks for your help.</p>