<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>
			Comments at DigitallyCreated Blog (for blogs tagged: &quot;Validation&quot;)
		</title>
		<link>http://www.digitallycreated.net/Blog/Tags/Validation/CommentRss</link>
		<atom:link href="http://www.digitallycreated.net/Blog/Tags/Validation/CommentRss" rel="self" type="application/rss+xml" />
		<description>
			A feed of all comments that are posted on any blog at DigitallyCreated that is tagged with &quot;Validation&quot;.
		</description>
		<lastBuildDate>Sun, 05 Feb 2012 13:22:14 GMT</lastBuildDate>
		
		
			<item>
				<title>Source Code commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment39</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 39</guid>
				<dc:creator>Source Code</dc:creator>
				<pubDate>Fri, 08 Jul 2011 18:45:10 GMT</pubDate>
				<description>
					I have a question, When I apply a validation attribute (which is having associated validator to it) twice on a property,  for eg I have number1 which should be lesser than number2 and number3. so I apply something like below.&lt;br/&gt;[LessThan(&amp;quot;Number2&amp;quot;,ErrorMessage=)]&lt;br/&gt;[LessThan(&amp;quot;Number3&amp;quot;,ErrorMessage=)]&lt;br/&gt;public int Number1&lt;br/&gt;&lt;br/&gt;problem here is when it evaluates Number1 &amp;lt; Number3 to true, then it is not checking for Number1 &amp;lt;Number2, it assumes that validation for the whole field is passed. How can we ensure, we go through each validation (attribute rule) and make sure the correct Validation error is returned. 
				</description>
			</item>
		
		
			<item>
				<title>Daniel Chambers commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment19</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 19</guid>
				<dc:creator>Daniel Chambers</dc:creator>
				<pubDate>Mon, 15 Nov 2010 15:42:59 GMT</pubDate>
				<description>
					Thanks for clearing that one up Brad. :)
				</description>
			</item>
		
		
			<item>
				<title>Brad Wilson commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment18</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 18</guid>
				<dc:creator>Brad Wilson</dc:creator>
				<pubDate>Mon, 15 Nov 2010 12:17:47 GMT</pubDate>
				<description>
					Regarding your peanut gallery comment:&lt;br/&gt;&lt;br/&gt;Our validation system is designed to be very specific to MVC. The ControllerContext is present so that a validation library could be developed which used ambient information about the request in progress to make decisions about how validation will proceed. The fact that we don't currently use that information ourselves is irrelevant, as this is an extensibility point in the system that's designed to be consumed by others.&lt;br/&gt;&lt;br/&gt;If you are limiting yourself to DataAnnotations attributes and you want to consume them yourself from the business layer, I would suggest you use the DataAnnotations APIs yourself. In particular, you are looking for the static Validator class in System.ComponentModel.DataAnnotations.dll in .NET 4.
				</description>
			</item>
		
		
			<item>
				<title>Thanigainathan commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment15</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 15</guid>
				<dc:creator>Thanigainathan</dc:creator>
				<pubDate>Sun, 23 May 2010 16:55:07 GMT</pubDate>
				<description>
					Hi,&lt;br/&gt;&lt;br/&gt;Your article is really very good. But its really surprising why Microsoft doesn't provide any documents on inner workings of MVC framework. Is that because its maintained in Codeplex ?&lt;br/&gt;&lt;br/&gt;Please write a book on MVC which will be helpful for us .&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;Thani
				</description>
			</item>
		
		
			<item>
				<title>Troy Cox commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment11</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 11</guid>
				<dc:creator>Troy Cox</dc:creator>
				<pubDate>Mon, 10 May 2010 00:17:37 GMT</pubDate>
				<description>
					Nice post.&lt;br/&gt;&lt;br/&gt;@ERolnkcki, I don't, for one, like my business models ever making it to the UI. I use view models. My view models use the validation.&lt;br/&gt;&lt;br/&gt;--by the way Readability fixes your site so I can read it.
				</description>
			</item>
		
		
			<item>
				<title>E Rolnicki commented on &quot;Deep Inside ASP.NET MVC 2 Model Metadata and Validation&quot;</title>
				<link>http://www.digitallycreated.net/Blog/54/deep-inside-asp.net-mvc-2-model-metadata-and-validation#Comment8</link>
				<guid isPermaLink="false">DigitallyCreated Comment ID: 8</guid>
				<dc:creator>E Rolnicki</dc:creator>
				<pubDate>Thu, 06 May 2010 13:17:38 GMT</pubDate>
				<description>
					good post.  since you are validating your model in the business layer (as you should), just override the default model binder's OnModelUpdated to remove the validation on binding.
				</description>
			</item>
		
		
		
	</channel>
</rss>

