Παρουσίαση με Ετικέτες

HowTo: include MVC model property Display name in Required validation message
04 Οκτωβρίου 18 01:04 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Just came across this validation error display in an MVC app I’ve recently started maintaining. The required input field validation seemed to not be localized, resulting in a mixed English and Greek (from the field’s Display name) message: Looking at the MVC model I noticed they were using [Required] attributes for the userName and password […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: format XML output of DataContractSerializer
22 Φεβρουαρίου 13 04:52 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
based on the other samples posted at StackOverflow on how to format XML created by DataContractSerializer, that use XmlWriter, here’s a version (from ClipFlair source code) that works with streams (and Ionic.Zip library in specific). It also shows how the code is when you don’t apply formatting (using conditional compilation).  Just comment out the #define [...]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές