CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Glenn Block

Another ALT.NET guy at Microsoft

Tweaking the WCSF Validation Bundle

Jarod has a nice post where he demonstrates how to reduce the number of postbacks that occur when using the ServerSideValidationExtender included as part of the Validation Bundle.

Jarod demonstrates how to subclass the PropertyProxyValidator and override the EvaluateIsValid() method to not validate on a full postback. He then shows how to modify the ServerSideValidationExtender so that it tracks the current value for the associated control and only re-runs the validation if the value has changed. 

If you are using the Validation bundle and you are experiencing too many postbacks, then check out his fix. Jarod's even dropped the full source with his fixes applied.

Thanks Jarod!



About Glenn Block

Glenn is a PM for the new Managed Extensibility Framework in .NET 4.0. Prior to Microsoft, he worked for 10 years in various startups and ISVs wearing many different hats all related to developing software. Glenn has been writing code practically since the time he learned how to ride a bicycle. When he's not writing code, he's continuously improving on ways to build better software. Glenn is a geek at heart and spends a good portion of the rest of this time spreading that geekdom through conferences, and the community through groups such as ALT.NET. When he's not working and playing with technology, he spends his time with his wife and four year old daughter either at their Seattle apartment or at one of the local coffee shops. Check out Devlicio.us!

This Blog

Syndication

News

View Glenn Block's profile on LinkedIn

Me