Call Javascript from GridView TemplateField
<p>I have a GridView, I have coded like the below</p>

<pre><code>&lt;asp:TemplateField HeaderText="Item"&gt;
 &lt;ItemTemplate&gt;                                            
   &lt;asp:Button ID="btnItem" OnClientClick="javascript:SearchReqsult(&lt;%#Eval("Id") %&gt;);"
 CssClass="Save" runat="server" /&gt; 
&lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
</code></pre>

<p>I face a run time error which says that my button control is formatted correctly
I suppose the issue with the following</p>

<pre><code>OnClientClick="javascript:SearchReqsult(&lt;%#Eval("Id") %&gt;);"
</code></pre>

<p>Any idea?</p>
