Posted on: 5/7/2015 1:56:39 PM | Views : 593

I have a gridview with a template checkbox that when changed, I want to call a javascript function that will call a webservice.  I need to pass in the ident integer field of the data row.
<asp:TemplateField HeaderText="Postal</br>Vote" HeaderStyle-VerticalAlign="Bottom"> <ItemTemplate> <asp:CheckBox id="ckPostalVote" runat="server" checked='<%# Eval("postalvote") %>' onClick='PostalChanged(this,<%# Eval("ident") %>);' /> </ItemTemplate> </asp:TemplateField> But when the onclick property is rendered, it does this...
onclick="PostalChanged(this,&quot;&lt;%# Eval(&quot;ident&quot;) %>&quot;);"
how do I get it to render properly?< ...

Go to the complete details ...