javascript code executes when grid refreshes
<p>I have a gridview, the gridview refreshes when I type something in the search box that is on top of the gridview, the problem is when the gridview refreshes it excutes a javascript code that is present on the linkbutton click event, this linkbutton is inside the gridview.</p>

<p>I don't want the javascript to be excutes when the gridview refreshes.</p>

<p>How can I stop that.</p>

<pre><code>&lt;asp:LinkButton ID="ID_Link" runat="server" 
OnClientClick='&lt;%# "warningMessage(" +   Container.ItemIndex + "); return false" %&gt;'    
Text='&lt;%#Bind("ID") %&gt;'&gt;&lt;/asp:LinkButton&gt;
</code></pre>

<p>Thanks </p>
