<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Build Model-Aware Custom Validation Attributes in ASP.NET MVC 2</title>
	<atom:link href="http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/</link>
	<description>Making stuff up about web development since last week.</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:29:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Client Side Model-Aware Validation - Nick Riggs, Web Developer</title>
		<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/comment-page-1/#comment-608</link>
		<dc:creator>Client Side Model-Aware Validation - Nick Riggs, Web Developer</dc:creator>
		<pubDate>Fri, 18 Jun 2010 22:08:05 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=234#comment-608</guid>
		<description>[...] time to create the client side version because posting back sucks.   Weeks ago, I covered how to build custom model-aware validators using Foolproof. I got a question about how to build an accompanying client side validator. So today I’ll cover [...]</description>
		<content:encoded><![CDATA[<p>[...] time to create the client side version because posting back sucks.   Weeks ago, I covered how to build custom model-aware validators using Foolproof. I got a question about how to build an accompanying client side validator. So today I’ll cover [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Feduke</title>
		<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/comment-page-1/#comment-593</link>
		<dc:creator>Charles Feduke</dc:creator>
		<pubDate>Mon, 14 Jun 2010 15:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=234#comment-593</guid>
		<description>Awesome.  I was stunned to see that only the most simplistic validation scenarios were included in MVC2 by default.  Glad I found this... it will help greatly.</description>
		<content:encoded><![CDATA[<p>Awesome.  I was stunned to see that only the most simplistic validation scenarios were included in MVC2 by default.  Glad I found this&#8230; it will help greatly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Riggs</title>
		<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/comment-page-1/#comment-332</link>
		<dc:creator>Nick Riggs</dc:creator>
		<pubDate>Sat, 01 May 2010 16:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=234#comment-332</guid>
		<description>Adam, I like that idea. I created a CodePlex work item for it:

&lt;a href=&quot;http://foolproof.codeplex.com/WorkItem/View.aspx?WorkItemId=12918&quot; rel=&quot;nofollow&quot;&gt;http://foolproof.codeplex.com/WorkItem/View.aspx?WorkItemId=12918&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Adam, I like that idea. I created a CodePlex work item for it:</p>
<p><a href="http://foolproof.codeplex.com/WorkItem/View.aspx?WorkItemId=12918" rel="nofollow">http://foolproof.codeplex.com/WorkItem/View.aspx?WorkItemId=12918</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/comment-page-1/#comment-299</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 29 Apr 2010 18:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=234#comment-299</guid>
		<description>Are there any plans for something like RegexIfAttribute, where a regex pattern (with optional RegexOptions) must pass successfully but only when a condition is met elsewhere in model?

I have an address model that needs to validate postal code for certain countries (e.g., Canadian &quot;ANA NAN&quot; and US ZIP[+4]) where that would be nice to do.

I tried to roll my own but, the further I got, the more it seemed I needed to bring the entire source with it to get access to all the internals; there was a close call when I tried to inherit from RequiredIfAttribute, but that ended up being functionally incorrect. I&#039;m not opposed to writing such an attribute to contribute but I don&#039;t want to step on any toes; it would also lack client-side validation until I brush up on implementing/testing that. If all else fails, I can make a bunch of custom address model-aware validation attributes.</description>
		<content:encoded><![CDATA[<p>Are there any plans for something like RegexIfAttribute, where a regex pattern (with optional RegexOptions) must pass successfully but only when a condition is met elsewhere in model?</p>
<p>I have an address model that needs to validate postal code for certain countries (e.g., Canadian &#8220;ANA NAN&#8221; and US ZIP[+4]) where that would be nice to do.</p>
<p>I tried to roll my own but, the further I got, the more it seemed I needed to bring the entire source with it to get access to all the internals; there was a close call when I tried to inherit from RequiredIfAttribute, but that ended up being functionally incorrect. I&#8217;m not opposed to writing such an attribute to contribute but I don&#8217;t want to step on any toes; it would also lack client-side validation until I brush up on implementing/testing that. If all else fails, I can make a bunch of custom address model-aware validation attributes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.nickriggs.com/posts/build-model-aware-custom-validation-attributes-in-asp-net-mvc-2/comment-page-1/#comment-257</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 22 Apr 2010 02:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://nickriggs.com/?p=234#comment-257</guid>
		<description>Hey this is great. I was greatly dissapointed by the pathetic out-of-box offering for validation in MVC/MVC2 and was just about to start writing my own validation provider. This one however gives me a better starting point and is (now) extensible. Nice</description>
		<content:encoded><![CDATA[<p>Hey this is great. I was greatly dissapointed by the pathetic out-of-box offering for validation in MVC/MVC2 and was just about to start writing my own validation provider. This one however gives me a better starting point and is (now) extensible. Nice</p>
]]></content:encoded>
	</item>
</channel>
</rss>

