I wasted a few development hours discovering this strange behaviour when binding to the IsChecked property of a RadioButton in WPF when using MVVM. You can read about the issue on the MSDN forum, but from my experience if you have a two way binding on the is IsChecked property of a RadioButton which is part of a group, then after you set the bound property in code a couple of times, the RadioButton loses it’s binding all together. Read the rest of this entry »
Need to validate a form field based on the value of another field in ASP.Net? The .Net Framework provides a javascript function to do just that:
ValidatorEnable(val, enable)
This function takes the validator control (val) and a boolean to determine whether it should be enable or disabled. The problem with this function is that it triggers the validator to validate itself immediately, showing any validation error messages before the user has submitted the form, which may not always be want you want. The alternative is to set the validator’s enabled property to trigger this validator to validate itself when the user submits the form, and by using the Page_IsValid variable you can test whether the user has triggered a validation or not, then use ValidatorEnable function only after the validation has occurred when the user expects to see validation messages. Read the rest of this entry »
I’m currently studying for the Microsoft® .NET Framework 2.0—Application Development Foundation (70-536) exam, using the Microsoft Press Training Kit and I am appalled at the number of errors, both editorial and technical, in this book. There are whole paragraphs that have been taken out of one chapter and used as a place holder in another chapter then never changed, at one stage I was very confused when the book was talking about two different classes that seemed to do the same thing, only to find that they were the same class, it’s name had just be written wrong in places, arrggg. Read the rest of this entry »

