<?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: ASP.NET MVC Validation &#8211; The Definitive Guide (in my eyes)</title>
	<atom:link href="http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/feed/" rel="self" type="application/rss+xml" />
	<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/</link>
	<description>Graham O&#039;Neale – Deep In .NET Development: ASP.NET, MVC, jQuery, WPF, WCF, Silverlight</description>
	<lastBuildDate>Fri, 27 Aug 2010 04:30:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Adrian Grigore</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-465</link>
		<dc:creator>Adrian Grigore</dc:creator>
		<pubDate>Wed, 24 Jun 2009 07:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-465</guid>
		<description>Hi Graham,

Thanks for the great article! I recently spent two days on figuring out how to manage server- and client-side validation in a generic way and found a way to use xVal, DataAnnotationsModelbinder and jquery.validate so that I can implement any validation rule (even remote client-side validation) with C# code only. If you&#039;d like to have a look, you can find the article at 

http://devermind.com/aspnet-mvc/asp-net-mvc-tip-3-how-to-cover-all-your-client-side-form-validation-needs-without-writing-any-javascript-part1</description>
		<content:encoded><![CDATA[<p>Hi Graham,</p>
<p>Thanks for the great article! I recently spent two days on figuring out how to manage server- and client-side validation in a generic way and found a way to use xVal, DataAnnotationsModelbinder and jquery.validate so that I can implement any validation rule (even remote client-side validation) with C# code only. If you&#8217;d like to have a look, you can find the article at </p>
<p><a href="http://devermind.com/aspnet-mvc/asp-net-mvc-tip-3-how-to-cover-all-your-client-side-form-validation-needs-without-writing-any-javascript-part1" rel="nofollow">http://devermind.com/aspnet-mvc/asp-net-mvc-tip-3-how-to-cover-all-your-client-side-form-validation-needs-without-writing-any-javascript-part1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using MetadataType attribute with ASP.NET MVC xVal Validation Framework &#171; {Programming} &#38; Life</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-54</link>
		<dc:creator>Using MetadataType attribute with ASP.NET MVC xVal Validation Framework &#171; {Programming} &#38; Life</dc:creator>
		<pubDate>Wed, 04 Mar 2009 09:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-54</guid>
		<description>[...] in Uncategorized    Well major updates to my old article on ASP.NET MVC Validation [...]</description>
		<content:encoded><![CDATA[<p>[...] in Uncategorized    Well major updates to my old article on ASP.NET MVC Validation [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham O'Neale</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-53</link>
		<dc:creator>Graham O'Neale</dc:creator>
		<pubDate>Tue, 03 Mar 2009 22:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-53</guid>
		<description>@rekna, sorry dude just downloaded the code sample and tested it, you&#039;re right. Solution B works for client-side using the metadata type attribute but not for server-side, I must have got sidetracked and thought I did it when I didn&#039;t.  And it looks like it&#039;s not an easy task to do as the castle validator itself will have to be edited (not really an option) or overloaded.

Don&#039;t use my solution now unless I get a chance to get it working as it should be.
I suggest you check out xVal, from what I understand it is meant to have support for metadataType Steve claims but I am yet to test.  His approach is probably better as it&#039;s a more sophisticated framework http://blog.codeville.net/2009/02/27/xval-08-beta-now-released/.</description>
		<content:encoded><![CDATA[<p>@rekna, sorry dude just downloaded the code sample and tested it, you&#8217;re right. Solution B works for client-side using the metadata type attribute but not for server-side, I must have got sidetracked and thought I did it when I didn&#8217;t.  And it looks like it&#8217;s not an easy task to do as the castle validator itself will have to be edited (not really an option) or overloaded.</p>
<p>Don&#8217;t use my solution now unless I get a chance to get it working as it should be.<br />
I suggest you check out xVal, from what I understand it is meant to have support for metadataType Steve claims but I am yet to test.  His approach is probably better as it&#8217;s a more sophisticated framework <a href="http://blog.codeville.net/2009/02/27/xval-08-beta-now-released/" rel="nofollow">http://blog.codeville.net/2009/02/27/xval-08-beta-now-released/</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rekna</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-52</link>
		<dc:creator>rekna</dc:creator>
		<pubDate>Tue, 03 Mar 2009 12:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-52</guid>
		<description>ValidationScripts is only client-side validation, or am I wrong ? I was wondering how Castle does server side validation with MetadataType...

The ValidatorRunner doesn&#039;t seem to handle the MetadataType...</description>
		<content:encoded><![CDATA[<p>ValidationScripts is only client-side validation, or am I wrong ? I was wondering how Castle does server side validation with MetadataType&#8230;</p>
<p>The ValidatorRunner doesn&#8217;t seem to handle the MetadataType&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham O'Neale</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-51</link>
		<dc:creator>Graham O'Neale</dc:creator>
		<pubDate>Tue, 03 Mar 2009 11:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-51</guid>
		<description>Rekna,
Castle Validation looks at the Metadata class via the foreach() statement on line 36 of my example of ValidationScripts.cs.  We loop through the attributes searching for any matching the type &#039;MetadataTypeAttribute&#039;.</description>
		<content:encoded><![CDATA[<p>Rekna,<br />
Castle Validation looks at the Metadata class via the foreach() statement on line 36 of my example of ValidationScripts.cs.  We loop through the attributes searching for any matching the type &#8216;MetadataTypeAttribute&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rekna</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-50</link>
		<dc:creator>rekna</dc:creator>
		<pubDate>Tue, 03 Mar 2009 08:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-50</guid>
		<description>I don&#039;t see how solution B works on the server side? How can you tell Castle Validation to get the attributes from the metadataclass ?

When I look at the example project, I only see a reference to MetaDataTypeAttribute inside ValidationScritpsHelper...</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see how solution B works on the server side? How can you tell Castle Validation to get the attributes from the metadataclass ?</p>
<p>When I look at the example project, I only see a reference to MetaDataTypeAttribute inside ValidationScritpsHelper&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Web Nuggets #51 : Code Monkey Labs</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-49</link>
		<dc:creator>Weekly Web Nuggets #51 : Code Monkey Labs</dc:creator>
		<pubDate>Mon, 23 Feb 2009 03:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-49</guid>
		<description>[...] ASP.NET MVC Validation - The Definitive Guide: Graham O&#8217;Neale has compiled the ultimate guide on ASP.NET MVC validation. [...]</description>
		<content:encoded><![CDATA[<p>[...] ASP.NET MVC Validation &#8211; The Definitive Guide: Graham O&rsquo;Neale has compiled the ultimate guide on ASP.NET MVC validation. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham O'Neale</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-48</link>
		<dc:creator>Graham O'Neale</dc:creator>
		<pubDate>Sat, 14 Feb 2009 08:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-48</guid>
		<description>Hi Thomas, Yes you do need the Html.ClientSideValidation() function for the validation to render, this is as intended and as per Emad&#039;s example.  As this gives you flexibility also to exclude validation from some pages if necessary.
Thanks for the heads up regarding Castle, I will attempt to update the example when I get time, I will be testing out the new xVal library shortly, so I suggest you take a look at that and compare both implementations =) Take care.</description>
		<content:encoded><![CDATA[<p>Hi Thomas, Yes you do need the Html.ClientSideValidation() function for the validation to render, this is as intended and as per Emad&#8217;s example.  As this gives you flexibility also to exclude validation from some pages if necessary.<br />
Thanks for the heads up regarding Castle, I will attempt to update the example when I get time, I will be testing out the new xVal library shortly, so I suggest you take a look at that and compare both implementations =) Take care.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-47</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Wed, 11 Feb 2009 03:19:40 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-47</guid>
		<description>Hey Graham,

I played with your code a bit and implemented a testscenario in my own mvc app. If I do not put the code bracket for the client side validation in, I will not see any validation. I don&#039;t think this is intended? Can you perhaps check that back? I&#039;m still searching for a convenient way to do the validation for our new project and your approach looks very reasonable so far, so I would greatly appreciate your review ;)

Btw, Castle seems to have updates their dll. With the downloaded version your solution will not compile. Only in case you want to update ;)</description>
		<content:encoded><![CDATA[<p>Hey Graham,</p>
<p>I played with your code a bit and implemented a testscenario in my own mvc app. If I do not put the code bracket for the client side validation in, I will not see any validation. I don&#8217;t think this is intended? Can you perhaps check that back? I&#8217;m still searching for a convenient way to do the validation for our new project and your approach looks very reasonable so far, so I would greatly appreciate your review <img src='http://goneale.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Btw, Castle seems to have updates their dll. With the downloaded version your solution will not compile. Only in case you want to update <img src='http://goneale.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham O'Neale</title>
		<link>http://goneale.com/2009/01/19/aspnet-mvc-validation-the-definitive-guide-in-my-eyes/comment-page-1/#comment-46</link>
		<dc:creator>Graham O'Neale</dc:creator>
		<pubDate>Tue, 10 Feb 2009 22:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://goneale.wordpress.com/?p=107#comment-46</guid>
		<description>Thanks Trevor, I read Paco&#039;s comment first but have now made a mention to this framework.</description>
		<content:encoded><![CDATA[<p>Thanks Trevor, I read Paco&#8217;s comment first but have now made a mention to this framework.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
