<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>MVC2 - Model Validation</title><link>http://www.asp.net</link><pubDate>Mon, 26 Sep 2011 18:45:59 GMT</pubDate><generator>umbraco</generator><description>Comments for MVC2 - Model Validation</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/27497" rel="self" type="application/rss+xml" /><item><title>Comment Posted by Rohde</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Wed, 24 Mar 2010 21:07:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007702</guid><description><![CDATA[ <p>All the examples of validations I have seen for MVC is with hardcoded texts (which is not a lot since I&#39;m still an MVC-noob, but still...)</p><p></p><p>A short explanation on how to replace that with dynamic texts from a database or resx file would be great. I know that this is just meant to be a super quick intro, but hardcoding texts into model classes is a no-no for most people I think (well... hope ;o)</p><p></p><p>None the less a nice to-the-point intro.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Rohde.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by nZeus</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Wed, 24 Mar 2010 21:41:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007703</guid><description><![CDATA[ <p>Hello!</p><p>Can i ask?</p><p>Why don&#39;t you create a derived class and use it in your View?</p><p>Isn&#39;t it better:</p><p>public class ProductEntity : Product</p><p>{</p><p>    [Required]</p><p>    [...]</p><p>    public new string ProductName { get; set; }</p><p></p><p>    //...</p><p>}</p><p>?</p><p>Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/nZeus.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amacleod</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Mon, 05 Apr 2010 10:21:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007704</guid><description><![CDATA[ <p>How would you get to happen before hitting submit with </p><p> &lt;% Html.EnableClientValidation(); %&gt; in use? </p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/amacleod.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by acroitoriu</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Tue, 27 Apr 2010 11:44:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000007705</guid><description><![CDATA[ <p>nice intro video.... really nice to see other ways of doing model validation and this looks quite easy at first sight. Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/acroitoriu.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kumarpandian</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Thu, 03 Jun 2010 03:09:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000008972</guid><description><![CDATA[ <p>Good One</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/kumarpandian.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by speedytangent</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Fri, 02 Jul 2010 23:42:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009300</guid><description><![CDATA[ <p>Great feature of ASP.NET MVC2 , loving it :)</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/speedytangent.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by danfromisrael</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Thu, 22 Jul 2010 14:57:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009570</guid><description><![CDATA[ <p>how would you apply it in an n-tier application ?</p><p>would you use System.ComponentModel.DataAnnotations on your Model tier ?</p><p>and would it get accepted in MVC or is that a different assembly ?</p><p>is it better using the metadata attribute in the UI Layer and extend the model class ?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/danfromisrael.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ivan.jordan</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Wed, 03 Nov 2010 17:36:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010815</guid><description><![CDATA[ <p>What about to validate two properties against each other?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ivan.jordan.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rakesh139</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Thu, 02 Dec 2010 13:50:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011115</guid><description><![CDATA[ <p>great article</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rakesh139.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by LeonEntSysArchitect</title><link>http://www.asp.net/mvc/videos/mvc-2/how-do-i/mvc2-model-validation</link><pubDate>Mon, 26 Sep 2011 18:45:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014280</guid><description><![CDATA[ <p>This is very good. any video on charts?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/LeonEntSysArchitect.jpg?forceidenticon=false&amp;dt=635071248600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>