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

Glenn Block


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 Block is the Technical Product Planner for the Client UX program at patterns & practices. As Product Planner he is responsible for driving the vision and creation of p&p client deliverables including the Web Client and Smart Client software factories. Prior to joining Microsoft, Glenn has lived in various roles being "in the trenches" with developers, including being responsible for the overall architecture and technology direction. He has worked in both large and small organizations building enterprise systems for financial services, manufacturing, and print & mail on multiple platforms including .NET and Java. His technology passions are in software frameworks, architecture and systems integration. He resides with his wife and 3 year old daughter in Seattle (his other passion). Check out Devlicio.us!

This Blog

Syndication

News

View Glenn Block's profile on LinkedIn

Me