I have a checkbox column, which has a OnCheckedChanged event.
To avoid postbacks I have placed the checkbox control in UpdatePanel but still it is postbacking
When i execute run the page, i see the postback is still happening.
I dont know whats wrong with my code.
<asp:TemplateField>
<ItemTemplate>
<asp:Literal ID="ltrl" runat="server" Text='<%# Eval("Name") %>'></asp:Literal>
<asp:HiddenField ID="chkId" runat="server" Value='<%# Eval("ControlName") %>' />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:CheckBox ID="chekBox" runat="server" Text='<%# Eval("Name") %>' Checked='<%# Eval("Check") %>'
AutoPostBack="true" OnCheckedChanged="chekBox_CheckedChanged" />
</ContentTemplate>
</asp:UpdatePanel>
</ItemTemplate>
</asp:TemplateField>