<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>Validating with a Service Layer</title><link>http://asp.net</link><pubDate>Mon, 13 Sep 2010 16:47:07 GMT</pubDate><generator>umbraco</generator><description>Comments for Validating with a Service Layer</description><language>en</language><atom:link href="http://asp.net/rss/comments/27585" rel="self" type="application/rss+xml" /><item><title>Comment Posted by jonjenkins</title><link>http://asp.net/mvc/tutorials/older-versions/models-(data)/validating-with-a-service-layer-vb</link><pubDate>Mon, 13 Sep 2010 16:47:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010214</guid><description><![CDATA[ <p>This works well, but how does it handle validating collections in the post method (e.g. <a rel="nofollow" href="http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/)?" target="_blank">blog.stevensanderson.com/</a> I tried it and noticed that it failed to display the ModelState error on the view since the field name in a collection contains the [index] prefix, but the service layer simply validates on the plain field name with no index associated. Any tips?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/jonjenkins.jpg?forceidenticon=false&amp;dt=635050181400000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>