Annoying MVC discovery of the day
-
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, 2013Which 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 -
WPF checkboxes have an
IsChecked
property that can be eitherfalse
,true
, ornull
. When you want to check if the checkbox is really checked, you have to:if (checkbox.IsChecked == true)
{
...
}Butt-fugly.
Software Zen:
delete this;
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 -
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, 2013I 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;