Validation Summary In Silverlight 3

No.of Views1421
Bookmarked0 times
Downloads 
Votes0
By  dpatra   On  17 Apr 2010 10:04:14
Tag : Silver Light and XAML , Validation Controls
In this article we will see how we can do custom error messages if required.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

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.
 

Image Loading

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.


 

Image Loading

 

Image Loading

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.
 

 

Image Loading

Hope this article helps.

Sample Project Source

Download source files -359 kb

 
Sign Up to vote for this article
 
About Author
 
dpatra
Occupation-Not Provided
Company-Not Provided
Member Type-Expert
Location-Not Provided
Joined date-13 Jul 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top