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. Checkbox must retain value while switching between aspx pages

Checkbox must retain value while switching between aspx pages

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
3 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.
  • D Offline
    D Offline
    deep7
    wrote on last edited by
    #1

    hi, in my application i have a checkbox, when user checks it n goes to another aspx page and returns to the previous page, the checkbox gets unselected...it must maintain the value. How to do this...can anyone help? im new to asp.net...can anyone tell me is it using sessions then how to use it..or viewstate...

    C U 2 Replies Last reply
    0
    • D deep7

      hi, in my application i have a checkbox, when user checks it n goes to another aspx page and returns to the previous page, the checkbox gets unselected...it must maintain the value. How to do this...can anyone help? im new to asp.net...can anyone tell me is it using sessions then how to use it..or viewstate...

      C Offline
      C Offline
      codelinks
      wrote on last edited by
      #2

      by default asp.net handles viewstate, ,if not u can put this in the checkbox code in EnableViewState=true

      winnie

      1 Reply Last reply
      0
      • D deep7

        hi, in my application i have a checkbox, when user checks it n goes to another aspx page and returns to the previous page, the checkbox gets unselected...it must maintain the value. How to do this...can anyone help? im new to asp.net...can anyone tell me is it using sessions then how to use it..or viewstate...

        U Offline
        U Offline
        Urs Enzler
        wrote on last edited by
        #3

        Take a look here Maintaining a State per Page in ASP.NET Web Applications There I use the Session to store this kind of information. When the page is requested (not a Postback) then the state is restored.

        -^-^-^-^-^- no risk no funk ................... please vote ------>

        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