Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Checkboxes in GridView [modified]

Checkboxes in GridView [modified]

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-net
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sandeep_Kumbhar
    wrote on last edited by
    #1

    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

    A S N 3 Replies Last reply
    0
    • S 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

      A Offline
      A Offline
      amjad ali shah
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • S 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

        S Offline
        S Offline
        Sandeep_Kumbhar
        wrote on last edited by
        #3

        i am using vs 2005 and my code behind is c# Sandeep Kumbhar

        1 Reply Last reply
        0
        • S 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

          N Offline
          N Offline
          Naif_Prof
          wrote on last edited by
          #4

          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

          S 1 Reply Last reply
          0
          • N Naif_Prof

            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

            S Offline
            S Offline
            Sandeep_Kumbhar
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups