.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> Silverlight >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Validation Summary In Silverlight Tutorial

Posted By:Diptimaya Patra       Posted Date: March 22, 2010    Points: 25    Category: Silverlight    URL: http://www.dotnetspark.com  

In this article we will see how we can do custom error messages if required. We have already explored about the Validation Summary for displaying error messages set by Data Annotation
 

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.
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend