title: Bind data to the link button for onclientclick() in repeater control
body: <p>I used link button in the repeater control. and i want to call a javascript function on the onclientclick event and i want to pass parameter to that function from the data bonded to repeater control. </p>
  
  <p>I used following-</p>
  
  <pre><code>&lt;asp:LinkButton ID="lnk1" runat="server" Text="more" OnClientClick='loadOtherForm(&lt;%# Eval("EventType")%&gt;,&lt;%# Eval("EventID") %&gt;);' OnClick="lnk1_click" CommandArgument = '&lt;%# Eval("PKID") %&gt;' PostBackUrl='&lt;%# GetDetailPagePath(Eval("EventType"),Eval("EventID")) %&gt;'&gt;&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>but it gives the syntax error.</p>
  
  <p>I don't know what exactly wrong with this statement. I tried below one too-</p>
  
  <pre><code>OnClientClick="loadOtherForm('&lt;%# Eval("EventType")%&gt;','&lt;%# Eval("EventID") %&gt;');"
  </code></pre>
  
  <p>but it is giving <code>The server tag is not well formed.</code> error.</p>