Validation Summary In Silverlight 3


Introduction

We 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 Project

Fire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as ValidationSummarySample.

image1.gif

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.

image2.gif

image3.gif


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.

image4.gif

Hope this article helps.

Up Next
    Ebook Download
    View all
    Learn
    View all