Thursday, July 14, 2011

Model Metadata and Validation Localization using Conventions

Model Metadata and Validation Localization using Conventions


Model Metadata and Validation Localization using Conventions

Posted: 14 Jul 2011 12:45 PM PDT

By default, ASP.NET MVC leverages Data Annotations to provide validation. The approach is easy to get started with and allows the validation applied on the server to "float" to the client without any extra work. However, once you get localization involved, using Data Annotations can really clutter your models. For example, the following is a simple model class with two properties. public class Character { public string FirstName { get; set; } public string LastName { get; set; } } Nothing to write home about, but it is nice, clean, and simple. To make it more useful, I'll add validation and format how the properties are displayed. public class Character { [Display(Name= "First Name" )] [Required] [StringLength(50)]] public string FirstName...(read more)

Windows Phone 7 for Silverlight Developers: Portrait and Landscape & Themes

Posted: 14 Jul 2011 07:55 AM PDT

SilverlightShow has the honour to publish an entirely new ebook by the 4-time awardee of a Silverlight MVP title András Velvárt: " Windows Phone 7 for Silverlight Developers ". Below and in a previous article you may find free parts of the...( read more )...(read more)

Windows Phone 7 for Silverlight Developers: Input on the Phone

Posted: 14 Jul 2011 07:14 AM PDT

SilverlightShow has the honour to publish an entirely new ebook by the 4-time awardee of a Silverlight MVP title András Velvárt: " Windows Phone 7 for Silverlight Developers ". Below and in a next article you may find free parts of the Design...( read more )...(read more)

Silverlight Cream for July 12, 2011 -- #1116

Posted: 13 Jul 2011 08:59 PM PDT

In this Issue: Rudi Grobler , Roy Dallal , Hannah Watkins , AfricanGeek , Kunal Chowdhury ( -2- ), Beth Massi , Mohamed Mosallem , Michael Crump , and Jesse Liberty . Above the Fold: Silverlight: "Communicating between two local Silverlight Applications...( read more )...(read more)

Use Expression Blend to change the Layout Type Efficiently

Posted: 13 Jul 2011 10:30 AM PDT

Many time we need to change the layout type of any panel present inside the page. This is mainly a designers job but sometime developers need to change them on their requirement. In that case, people need to find out the start and end tag of the panel...( read more )...(read more)

No comments:

Post a Comment