DCSIMG
Validation - Ignorance is bliss

Ignorance is bliss

Everything you ever wanted to know about .Net and were afraid to ask

Browse by Tags

All Tags » Validation (RSS)
Introduction to Silverlight and WCF RIA – Tutorial Part 5 – Custom Validation using Data-Annotations
In My Previous post I demonstrated the Master-Detail In Silverlight and the default validation that comes with the DataForm control. If we want to use the Data-Annotation feature we need to do the following: Find the Auto-Generated XXXXService.Metadata.cs File. In out case it is the ProductsService.Metadata.cs File.   For this demo lets create a Range Rule for the ProductPrice Property and decide it can contain a Range of 0 to 1500. So we use the Data Annotation Attribute like this: Now compile...
Introduction to Silverlight and WCF RIA – Tutorial Part 4 – Simple Master-Detail Scenario
In my earlier Posts I demonstrated 3 steps in building a Silverlight application using WCF RIA Services: Step 1 – Setting The Silverlight Site. Step 2 – Displaying Data. Step 3 – Using The Domain Data Source. In this post I will “Upgrade” step 3 DataGrid to display a Master-Detail on the DataForm Control. To get started I added the relevant NameSpace: xmlns:DataFormControl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" After that it is very...
Introduction to Silverlight and WCF RIA – Tutorial Part 3 – Domain Data Source
In my earlier posts ( Setting the Silverlight Site and Displaying the data ), I showed how to create an Silverlight RIA Services Solution and how to connect the data to a simple grid. In this post I will show how to manipulate the display and actions on the data. One of the most important things when using a RIA Services in Silverlight is the added controls we can use in Silverlight to take fully advantage of the RIA Services Benefits. First but not last is the DomainDataSource that allows us to...
Creating A Simple MVC 2.0 Application Part 3 – MVC Sample Controller
Finally I found the time to continue this series of posts. In the 2 previous posts I showed how to create a simple controller and now it is time to create a full working controller so we can advance to manipulate and create a better looking and custom view for our site. It is recommended to follow the steps i Showed in an earlier post on how to create an MVC Application . Creating a Details Controller and View: Change the code of the Details method: public ActionResult Details( int id) { return View...