IntroductionWe have already explored about the Validation Summary for displaying error messages set by Data Annotation. In this article we will see how we can do custom error messages if required.Creating Silverlight ProjectFire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as ValidationSummarySample.Here is the basic idea about this application; we would have different controls other than TextBoxes. As Textboxes have the Validation Summary Animation.The following code describes how to use Validation Summary to display custom errors.
Custom Validation Summary Items can be added based on the condition we need to apply in our application.Now run the application and find the custom messages for the particular Control associated in the condition check.Hope this article helps.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: