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. "Good looking" checkbox - Custom Control

"Good looking" checkbox - Custom Control

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpjavascriptasp-nethardware
1 Posts 1 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.
  • S Offline
    S Offline
    Skoder
    wrote on last edited by
    #1

    Hello, I am trying to make a custom control which is like the checkbox, just good looking ... I am pretty new to asp.net and .net i general soo i am not sure about all the possibilites i have. But as far as i can figure out the easiest thing would just be to write out a checkbox make it invisible and then a tag where the picture is changed by javascript according to checked or unchecked status. Else i would have to use a hidden input ... which i found an article on this site are using. But as it is a Checkbox i want to imitate i guess it would just be the best to use a checkbox to make sure it acts like a checkbox when posted (soo it will work correct when implemented into other controls or code for an example if i want to use it together with the Login Control in Asp.Net 2.0 ...) I guess i wont have to handle anything else except, check everytime the control is loaded if the box was checked or unchecked when posted and then display the proper image. Are there other things I should think about ... any bad things about it ? better approaches ? As mentioned i am pretty new soo maybe it could be made much smarter ? Also in Asp.Net 2.0 i know there should be something about that i can included the pictures as an embedded resource or something, and then refference to them through Webresource or something like that ? Anyone who can help me with how to do that, or just a good article or something about it ? Hope anyone the time to help ... and any comments are appriciated. Martin. :confused:

    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