OnClientClick and Calling Custom JavaScript Function
<p>I am using the following code to call a javascript function but the OnClientClick expression is never evaluated. </p>

<pre><code>&lt;asp:Button ID="btn1" UseSubmitBehavior="false" 
OnClientClick='moveComment(txtComment_&lt;%# Eval("Container.DataItemIndex") %&gt;)'
runat="server" Text="add comment"/&gt;
</code></pre>
