<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Validation with the Data Annotation Validators</title><link>http://asp.net</link><pubDate>Tue, 31 Jul 2012 10:18:00 GMT</pubDate><generator>umbraco</generator><description>Comments for Validation with the Data Annotation Validators</description><language>en</language><atom:link href="http://asp.net/rss/comments/27586" rel="self" type="application/rss+xml" /><item><title>Comment Posted by prolingua.geo</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Tue, 08 Mar 2011 16:11:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012395</guid><description><![CDATA[ <p>If I use VS2010, do I still need to download the System.ComponentModel.DataAnnotations.dll assembly?</p><p>Please anybody, let me know?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/prolingua.geo.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by anil.channa</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Mon, 14 Mar 2011 08:44:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012457</guid><description><![CDATA[ <p>I am not able to make it working. I am using EF with POCO. If I modify the POCO class &amp; specify annotations using metadata, it works but as per the above approach (using metadatatype class alongwith a partial class for entity) it doesn&#39;t work. Any suggestions ?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/anil.channa.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by BenDunn</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Fri, 01 Jul 2011 15:45:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013658</guid><description><![CDATA[ <p>Can I accomplish the same result by creating an empty partial class</p><p></p><p>public partial class Movie : IMovie</p><p>    {</p><p>    }</p><p></p><p>that implements an interface IMovie and then put the DataAnnotation attributes on the fields in the interface?</p><p></p><p>public interface IMovie</p><p>    {</p><p>        [Required]</p><p>        object Title { get; set; }</p><p></p><p>        ...</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/BenDunn.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rmcclain</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Thu, 07 Jul 2011 10:44:31 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013718</guid><description><![CDATA[ <p>I have a property that&#39;s an array and allows the user to add dropdowns dynamically at runtime. i want to validate against all the added dropdowns are required. Is there a data annotation that can handle arrays? Not sure on the best approach.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rmcclain.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by walia_jagwinder</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Fri, 08 Jul 2011 01:36:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013725</guid><description><![CDATA[ <p>i think if we are using vs2010 than there is no need add the System.ComponentModel.DataAnnotations.dll </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/walia_jagwinder.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pankyz</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Fri, 21 Oct 2011 12:30:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014477</guid><description><![CDATA[ <p>Hi I am trying to use the above feature and i am using the following</p><p></p><p>public class ChangePassword</p><p>    {</p><p>        [Required(ErrorMessage=&quot;Enter old password.&quot;)]</p><p>        public User OldPwd{ get; set; }</p><p>        [Required(ErrorMessage = &quot;Enter New password&quot;)]</p><p>        public User NewPwd{ get; set; }</p><p></p><p></p><p>    }</p><p></p><p>When i hit the submit button and nothing is selected, it displays those error messages but i select and hit submit those messages does not go away..how to go about it..</p><p></p><p>Am i missing something...</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/pankyz.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mudasir.khan</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs</link><pubDate>Tue, 31 Jul 2012 10:18:00 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016076</guid><description><![CDATA[ <p>great article, very helpful</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mudasir.khan.jpg?forceidenticon=false&amp;dt=635046218400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>