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 Problem

CheckBox Problem

Scheduled Pinned Locked Moved ASP.NET
help
8 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.
  • V Offline
    V Offline
    Vijayitsb
    wrote on last edited by
    #1

    I am using CheckBox in my web form.But checked status always shownig false, Even I select that checkbox and I am also using Master Page in my Webform Do you have any Idea.

    Thank & Regards Vijay s

    E 1 Reply Last reply
    0
    • V Vijayitsb

      I am using CheckBox in my web form.But checked status always shownig false, Even I select that checkbox and I am also using Master Page in my Webform Do you have any Idea.

      Thank & Regards Vijay s

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      hmm unless you have it set to false in the tag? Is there anything happening on the checkbox check i.e. someone ticks the box and a postback occurs? Can you post some of your code?

      V 1 Reply Last reply
      0
      • E eyeseetee

        hmm unless you have it set to false in the tag? Is there anything happening on the checkbox check i.e. someone ticks the box and a postback occurs? Can you post some of your code?

        V Offline
        V Offline
        Vijayitsb
        wrote on last edited by
        #3

        I am Using this simple code if (chkA.Checked == true) gType = "A,"; if (chkC.Checked == true) gType += "C,"; if (chkH.Checked == true) gType += "H,"; // gType = gType.Substring(0, gType.Length - 1);

        Thank & Regards Vijay s

        V 1 Reply Last reply
        0
        • V Vijayitsb

          I am Using this simple code if (chkA.Checked == true) gType = "A,"; if (chkC.Checked == true) gType += "C,"; if (chkH.Checked == true) gType += "H,"; // gType = gType.Substring(0, gType.Length - 1);

          Thank & Regards Vijay s

          V Offline
          V Offline
          Vijayitsb
          wrote on last edited by
          #4

          Thanks for reply,I got the solution.

          Thank & Regards Vijay s

          E 1 Reply Last reply
          0
          • V Vijayitsb

            Thanks for reply,I got the solution.

            Thank & Regards Vijay s

            E Offline
            E Offline
            eyeseetee
            wrote on last edited by
            #5

            what was the solution?

            H V 2 Replies Last reply
            0
            • E eyeseetee

              what was the solution?

              H Offline
              H Offline
              Herman T Instance
              wrote on last edited by
              #6

              probably AutoPostBack="true"

              1 Reply Last reply
              0
              • E eyeseetee

                what was the solution?

                V Offline
                V Offline
                Vijayitsb
                wrote on last edited by
                #7

                Problem is my side.I only assigned "false" to that checkbox for some other reason in page load event.I dint notice that.thank you

                Thank & Regards Vijay s

                H 1 Reply Last reply
                0
                • V Vijayitsb

                  Problem is my side.I only assigned "false" to that checkbox for some other reason in page load event.I dint notice that.thank you

                  Thank & Regards Vijay s

                  H Offline
                  H Offline
                  Herman T Instance
                  wrote on last edited by
                  #8

                  You know you can use Page_Init(Object sender, EventArgs e) event? In that even you can set default values. The Init is only executed at first load of the page.

                  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