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. Custom Checkboxlist

Custom Checkboxlist

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
8 Posts 3 Posters 2 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.
  • L Offline
    L Offline
    Linux Gates
    wrote on last edited by
    #1

    Is it possible for me to have a crossed checkbox for OFF and ticked checkbox for ON in a checkboxlist....using ASP.NET or any other means in ASP.Net Please Help ciao, LG -- modified at 7:07 Thursday 9th February, 2006

    M I 2 Replies Last reply
    0
    • L Linux Gates

      Is it possible for me to have a crossed checkbox for OFF and ticked checkbox for ON in a checkboxlist....using ASP.NET or any other means in ASP.Net Please Help ciao, LG -- modified at 7:07 Thursday 9th February, 2006

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi there. What does a "crossed checkbox" mean? What does a "ticked checkbox" mean?

      L 1 Reply Last reply
      0
      • L Linux Gates

        Is it possible for me to have a crossed checkbox for OFF and ticked checkbox for ON in a checkboxlist....using ASP.NET or any other means in ASP.Net Please Help ciao, LG -- modified at 7:07 Thursday 9th February, 2006

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        Well in the end a web server control is an isolated class producting html and client script. So if you we're to extend the checkbox public class myCheckBo : CheckBox You could override the render method to draw something else Or just create your own control 1 line of code equals many bugs. So don't write any!!

        L 1 Reply Last reply
        0
        • M Mike Ellison

          Hi there. What does a "crossed checkbox" mean? What does a "ticked checkbox" mean?

          L Offline
          L Offline
          Linux Gates
          wrote on last edited by
          #4

          HI! NORMALLY A CHECKBOX IS EITHER BLANK OR TICKED....THAT IS SELECTED OR BLANK....IN PLACE OF BLANK I WANT A CROSS TO BE DISPLAYED ciao, LG

          M 1 Reply Last reply
          0
          • I Ista

            Well in the end a web server control is an isolated class producting html and client script. So if you we're to extend the checkbox public class myCheckBo : CheckBox You could override the render method to draw something else Or just create your own control 1 line of code equals many bugs. So don't write any!!

            L Offline
            L Offline
            Linux Gates
            wrote on last edited by
            #5

            how can i do it. i am basically a naive at ASP.NET.... so can you help in using the render method.... ciao, LG

            1 Reply Last reply
            0
            • L Linux Gates

              HI! NORMALLY A CHECKBOX IS EITHER BLANK OR TICKED....THAT IS SELECTED OR BLANK....IN PLACE OF BLANK I WANT A CROSS TO BE DISPLAYED ciao, LG

              M Offline
              M Offline
              Mike Ellison
              wrote on last edited by
              #6

              Okay then - you want to customize the display of a checkbox then? The standard checkbox won't allow for this - you might consider creating two images (one for off state "blank" and one for on state "ticked" using whatever image you want for each), then use an <img> tag to display it with an onclick behavior that swaps them. Just curious - this is quite a bit of work for a person new to web programming. Why not just use a regular checkbox?

              L 1 Reply Last reply
              0
              • M Mike Ellison

                Okay then - you want to customize the display of a checkbox then? The standard checkbox won't allow for this - you might consider creating two images (one for off state "blank" and one for on state "ticked" using whatever image you want for each), then use an <img> tag to display it with an onclick behavior that swaps them. Just curious - this is quite a bit of work for a person new to web programming. Why not just use a regular checkbox?

                L Offline
                L Offline
                Linux Gates
                wrote on last edited by
                #7

                for your curiosity i am doing a project ....which has a user requirement of tat sort... cant help....the users are freaky sometimes... thanks for your help....i will just try it out ... and if possible write to me a sample code... catch ya later ciao, LG

                M 1 Reply Last reply
                0
                • L Linux Gates

                  for your curiosity i am doing a project ....which has a user requirement of tat sort... cant help....the users are freaky sometimes... thanks for your help....i will just try it out ... and if possible write to me a sample code... catch ya later ciao, LG

                  M Offline
                  M Offline
                  Mike Ellison
                  wrote on last edited by
                  #8

                  Well, sometimes you as the developer, with some clear communication can help persuade the users... "We have two options... you can use a regular checkbox, which won't take me any extra time to develop... or, you can go with the special cross you are interested in, but that will take several more days of development work with a lot of extra client-side code at $xxx.xx per hour... it's your choice of course, but the regular checkbox is cheaper for you and serves the necessary purpose..."

                  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