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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Logical Help required with checkedlist box

Logical Help required with checkedlist box

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 2 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.
  • G Offline
    G Offline
    Girish481
    wrote on last edited by
    #1

    Hello, I am working on a school result processing project. I have one checkedlist control which have 3 options:(To choose paper code) All First Second to select the paper code option. All stands for all papers i.e. paper1 and paper2; while if any of other than "All" option checked by user; the respective action should be taken place. Suppose, user checked on option First, then all records whose papercode <> 1; will be deleted by command.ExecuteNonQuery() and if user checked on Second, then all records whose papercode <> 2; will be deleted by command.ExecuteNonQuery(). If user checked on All or any of First/Second; no action is needed; because All option means no action required. Kindly help to code this requirement or let me know, if i am not clear to explain my question. Thank and Regards Girish Sharma

    B 1 Reply Last reply
    0
    • G Girish481

      Hello, I am working on a school result processing project. I have one checkedlist control which have 3 options:(To choose paper code) All First Second to select the paper code option. All stands for all papers i.e. paper1 and paper2; while if any of other than "All" option checked by user; the respective action should be taken place. Suppose, user checked on option First, then all records whose papercode <> 1; will be deleted by command.ExecuteNonQuery() and if user checked on Second, then all records whose papercode <> 2; will be deleted by command.ExecuteNonQuery(). If user checked on All or any of First/Second; no action is needed; because All option means no action required. Kindly help to code this requirement or let me know, if i am not clear to explain my question. Thank and Regards Girish Sharma

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Your problem is not very clear.Can you explain a bit? What I understand, you need to delete the record if user selects first or second and dont need to do anything if user selects all. if yes then have check at serverside and take the action accordingly.

      Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

      G 1 Reply Last reply
      0
      • B Brij

        Your problem is not very clear.Can you explain a bit? What I understand, you need to delete the record if user selects first or second and dont need to do anything if user selects all. if yes then have check at serverside and take the action accordingly.

        Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

        G Offline
        G Offline
        Girish481
        wrote on last edited by
        #3

        Hi Brij, Thanks for your reply and time given to my problem. Let me once again clear it more: If user selected "All" option with/without First/Second option then no action is required. If user selected First only then deleted those records whose papercode <> 1 Endif If user selected Second only then deleted those records whose papercode <> 2 Endif If user selected First and Second No Action required Endif If user selected All+First+Second No action required Endif Means, only action required on selection of single "First" or "Second" option and wish to perfrom some delete operation on table. Its vb.net 2005 project please. Regards Girish Sharma

        B 1 Reply Last reply
        0
        • G Girish481

          Hi Brij, Thanks for your reply and time given to my problem. Let me once again clear it more: If user selected "All" option with/without First/Second option then no action is required. If user selected First only then deleted those records whose papercode <> 1 Endif If user selected Second only then deleted those records whose papercode <> 2 Endif If user selected First and Second No Action required Endif If user selected All+First+Second No action required Endif Means, only action required on selection of single "First" or "Second" option and wish to perfrom some delete operation on table. Its vb.net 2005 project please. Regards Girish Sharma

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          I donno much about vb.net, but are you not able to check which all checkboxes checked at serverside?

          Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators

          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