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. The Lounge
  3. Annoying MVC discovery of the day

Annoying MVC discovery of the day

Scheduled Pinned Locked Moved The Lounge
asp-netarchitecturequestion
23 Posts 11 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.
  • realJSOPR realJSOP

    When you try to retrieve the value of a checkbox on a form using Request.Form.Get(keyname), the resulting value is "false" if the checkbox isn't checked, but if the checkbox IS checked, the returned value is "true,false". WTF?!!!! I mean seriously - WHAT THE F*CK?!!!!!!

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote on last edited by
    #21

    Which one of you liberal pussies marked my original message as spam? Was it because I said "F*CK" instead of that gay-ass replacement phrase "elephant"?

    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
    -----
    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
    -----
    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

    1 Reply Last reply
    0
    • G Gary Wheeler

      WPF checkboxes have an IsChecked property that can be either false, true, or null. When you want to check if the checkbox is really checked, you have to:

      if (checkbox.IsChecked == true)
      {
      ...
      }

      Butt-fugly.

      Software Zen: delete this;

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #22

      I use WPF pretty much every day. It falls solidly into the category of "other bastardized Microsoft frameworks". :)

      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
      -----
      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
      -----
      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

      G 1 Reply Last reply
      0
      • realJSOPR realJSOP

        I use WPF pretty much every day. It falls solidly into the category of "other bastardized Microsoft frameworks". :)

        ".45 ACP - because shooting twice is just silly" - JSOP, 2010
        -----
        You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
        -----
        When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

        G Offline
        G Offline
        Gary Wheeler
        wrote on last edited by
        #23

        I disagree with your word 'bastardized'. That implies they got WPF from someone else, and then screwed it up. I think WPF is all their own. The term "sonofabitching" works in its place. :-D

        Software Zen: delete this;

        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