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. how to validate check box?

how to validate check box?

Scheduled Pinned Locked Moved ASP.NET
questionhelptutorial
4 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
    Dong Kim
    wrote on last edited by
    #1

    Web Page setting -> .aspx.cs -> protected void chkBILL_CheckedChanged(object sender, EventArgs e) { if (chkBILL.Checked == false) { lRCVTYPE.Text = "P/O No"; cmdLKPO.Enabled = true; lBILLDTID.Visible = false; txtBILLDT.Visible = false; } else { lRCVTYPE.Text = "Bill No"; cmdLKPO.Enabled = false; lBILLDTID.Visible = true; txtBILLDT.Visible = true; } } This is coding. When I checked check box, cs coding is not activated. How can I make it work when check box checked? Please help me.

    C 1 Reply Last reply
    0
    • D Dong Kim

      Web Page setting -> .aspx.cs -> protected void chkBILL_CheckedChanged(object sender, EventArgs e) { if (chkBILL.Checked == false) { lRCVTYPE.Text = "P/O No"; cmdLKPO.Enabled = true; lBILLDTID.Visible = false; txtBILLDT.Visible = false; } else { lRCVTYPE.Text = "Bill No"; cmdLKPO.Enabled = false; lBILLDTID.Visible = true; txtBILLDT.Visible = true; } } This is coding. When I checked check box, cs coding is not activated. How can I make it work when check box checked? Please help me.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Set AutoPostback=true You'd do better IMO to write javascript to do this, so that there's no need for a postback.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      D 1 Reply Last reply
      0
      • C Christian Graus

        Set AutoPostback=true You'd do better IMO to write javascript to do this, so that there's no need for a postback.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        D Offline
        D Offline
        Dong Kim
        wrote on last edited by
        #3

        I'm still new at ASP.NET and java coding. How can I do that? any example?

        P 1 Reply Last reply
        0
        • D Dong Kim

          I'm still new at ASP.NET and java coding. How can I do that? any example?

          P Offline
          P Offline
          P Tagore Srinivas Dhanunjay
          wrote on last edited by
          #4

          tooltip="Check if you input for billing" AutoPostBack="true" />

          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