Checkboxes in GridView [modified]
-
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i am using asp.net 2.0 Sandeep Kumbhar -- modified at 5:09 Saturday 5th May, 2007
-
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i am using asp.net 2.0 Sandeep Kumbhar -- modified at 5:09 Saturday 5th May, 2007
use this in aspx file "asp:CheckBox id="Chk" runat="server" AutoPostBack="true" checked='<%# status(container.dataitem("Active"),false) %>' OnCheckedChanged="SaveStatus" " and then in code file Function status(ByVal act As Integer) As String If act = 0 Then Return "False" Else Return "True" End If End Function -- modified at 4:48 Saturday 5th May, 2007
-
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i am using asp.net 2.0 Sandeep Kumbhar -- modified at 5:09 Saturday 5th May, 2007
i am using vs 2005 and my code behind is c# Sandeep Kumbhar
-
I am using gridview and it has check box selection. I have set the allow paging property to true. When I click a checkbox and go to next page and again come back to the page where i have clicked a checkbox, it gets unchecked.Please help me on this issue. i am using asp.net 2.0 Sandeep Kumbhar -- modified at 5:09 Saturday 5th May, 2007
-
Hi Sandeep Kumbhar you can create session variable to save user selection in each page and at pagian change upload user selection from session variable thanks
But, if there are 10 records per page, and suppose all the checkboxes for that records are selected then how can i store them in a session variable for that page? Sandeep Kumbhar