lundi 11 janvier 2016

ASP.NET GridView CheckBox control is not selected fter navigating to another page

My ASP.NET page has a GridView that has a checkbox and allows paging.

My problem is that when selecting a checkbox on the 1st page and then after navigating to another page and coming back to the 1st page, check box is not checked anymore.

I have the following template defined for checkbox:

<ItemTemplate>
   <asp:CheckBox ID="chkSecurityCheckID" runat="server" Checked="false" Value='<%#Eval("ID") %>' Visible='<%# hasVisability((int)Eval("Status.UserID")) %>' AutoPostBack="false"></asp:CheckBox>
</ItemTemplate>

Is there is a way to configure GridView or CheckBox's properties or jQuery technique to remember if the checkbox was clicked?




Aucun commentaire:

Enregistrer un commentaire