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,"<%# Eval("ident") %>");"
how do I get it to render properly?< ...
Go to the complete details ...