Please note… this post is out-dated and all of the madness below is no longer needed in order to implement Async Validation with RIA Services. Please see the new post for the current approach. The Birth of QuickSilverlight.Validation Over on the .NET RIA Services forums, “SilverlightRIA” asked about performing asynchronous...
[Read More]
Validating Decimal Ranges with RangeAttribute
System.ComponentModel.DataAnnotations offers a RangeAttribute that can be used to validate that a value is within a given range. Silverlight 3’s SDK includes this assembly and .NET RIA Services and ASP.NET Dynamic Data use this too. Something that a few of us have stumbled on here internally is that the RangeAttribute...
[Read More]
Partial Guids as Random Passwords
Warning: this post is almost a complete waste of time. Read at your own risk. Years ago, my team was working on a feature that required random passwords to be generated, hundreds at a time. While discussing different techniques for doing this, one of the guys suggested just using a...
[Read More]
Making ViewModel Easier
Glenn Block and I have been working together on the ViewModel pattern. We’ve been trying to identify the biggest pain points associated with the pattern, with the goal of adding framework support to alleviate the pain. Tonight, Glenn posted, “View Model” – the movie, cast your vote. I decided to...
[Read More]
Mirroring output to console and a file
I’ve been doing some more batch file work recently. I keep getting frustrated that batch files don’t have a way to send output to both the console and a file. I decided to write a little console application to do this for me. This is largely untested – it’ll be...
[Read More]