<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>How to Implement Custom Field Validation with Imperative Logic in VB or C#</title><link>http://www.asp.net</link><pubDate>Sat, 23 Apr 2011 09:35:07 GMT</pubDate><generator>umbraco</generator><description>Comments for How to Implement Custom Field Validation with Imperative Logic in VB or C#</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33702" rel="self" type="application/rss+xml" /><item><title>Comment Posted by hyeon_k</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Mon, 15 Dec 2008 15:33:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003079</guid><description><![CDATA[ <p>very good video. &#160;Joe, you rock!</p> <p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/hyeon_k.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mjta</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Mon, 22 Dec 2008 12:37:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003080</guid><description><![CDATA[ <p>Joe...good stuff...can we get a video showing how to access specific records from a database for the Logged In User that uses the ASP.NET Membership Provider?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mjta.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rrrsr7205</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Thu, 09 Sep 2010 16:32:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010179</guid><description><![CDATA[ <p>I tried this on employee (in a web site project, EM4, DD4) and got an unhandled exception.</p><p>Here is partial class:</p><p>Namespace NorthwindModel &#39;NOTE CASE of Namespace identifier must agree with CASE of the main Namespace identifier</p><p>    &lt;MetadataType(GetType(EmployeeMetaData))&gt; _</p><p>    Partial Public Class Employee</p><p></p><p>        Public Overrides Function ToString() As String</p><p></p><p>            Return LastName.ToString() &amp; &quot;, &quot; &amp; FirstName.ToString()</p><p></p><p>        End Function</p><p></p><p></p><p>        Private Sub OnLastNameChanging(ByVal value As String)</p><p>            If (Char.IsLower(value(0))) Then</p><p>                Throw New ValidationException(&quot;Lastname must begin with an upper case character&quot;)</p><p>            End If</p><p>        End Sub</p><p>    End Class</p><p></p><p>What did I do wrong?</p><p>The demos always look great.  My implementations never look anything!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/rrrsr7205.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mfromm</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Sat, 19 Mar 2011 18:17:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012514</guid><description><![CDATA[ <p>Hi, Joe! I really like your videos. </p><p></p><p>I am working on a new project to build a transactional system.</p><p></p><p>I am new to Dynamic Data Websites in .NET but not new to ASP.NET. </p><p></p><p>I would like to know the pros and mostly the cons in using it in a Production website with at least 700 users and roughly 25 concurrent users at a time. </p><p></p><p>1. How does it compare, performance wise when comparing it to the usual production way of coding DAL (not LINQ to SQL) and CRUD screens in ASP.NET.</p><p></p><p>2. What are the best practices that I should use when implementing Dynamic Data website into a production website that has personnal/private information besides using SSL, forms authentication and stored procedures (to minimize SQL injection).</p><p></p><p>3. Have you seen or know of Dynamic Data websites in a production environment. Would you recommend this for a production environment with personal identifiable information? </p><p></p><p>Thank you in advance for your help!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mfromm.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mfromm</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Sat, 19 Mar 2011 18:18:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012515</guid><description><![CDATA[ <p>Hi, Joe! I really like your videos. </p><p></p><p>I am working on a new project to build a transactional system.</p><p></p><p>I am new to Dynamic Data Websites in .NET but not new to ASP.NET. </p><p></p><p>I would like to know the pros and mostly the cons in using it in a Production website with at least 700 users and roughly 25 concurrent users at a time. </p><p></p><p>1. How does it compare, performance wise when comparing it to the usual production way of coding DAL (not LINQ to SQL) and CRUD screens in ASP.NET.</p><p></p><p>2. What are the best practices that I should use when implementing Dynamic Data website into a production website that has personnal/private information besides using SSL, forms authentication and stored procedures (to minimize SQL injection).</p><p></p><p>3. Have you seen or know of Dynamic Data websites in a production environment. Would you recommend this for a production environment with personal identifiable information? </p><p></p><p>Thank you in advance for your help!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mfromm.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mythlandia</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Sun, 03 Apr 2011 03:38:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012693</guid><description><![CDATA[ <p>SOLUTION to ValidationException Error!!!</p><p></p><p>When running the example under a newly installed version of Visual Studio 2010 Sp1, I was getting the &quot;ValidationException was unhandled by user code&quot;. The exception was not being passed back to DynamicValidator class and so was not being reported back in the Browser.  Searching for solutions I found work-arounds using things called ImprovedDynamicValidator and MyDynamicValidator which *did not work* and still I was getting the error message instead of the DynamicValidator response shown in the video.</p><p></p><p>Do not panic!</p><p></p><p>There is nothing wrong with either Visual Studio 2010 nor with the implementation even though it appears so.</p><p>The clue is in the error message: exception is not handled in user code. This is true. The exception handler is actually in the .NET 4.0 components which are not-in the standard install-part of the *user* code. But they are there: just press &lt;run&gt; again once the error message comes up and you suddenly get your expected behavior with the validation message appearing in the browser.</p><p>Wow! So what happens to a normal user? Well, try running your application through the &quot;Debug|Start without debugging&quot; option and suddenly everything works as expected.</p><p>But then what about debugging? Going to be a pain? And why has no-one warned us about this issue?  Joe?!!! No. Actually, once a serious developer gets started with Visual Studio they are going to want to go to &quot;Debug|Options and Settings|Debugging|General&quot; and tick the box &quot;Enable .NET Framework source stepping&quot;. This will automatically download and install the framework source code so that you can truely follow what is going on in the interactions between your code and the framework.  Most serious developers-and certainly ones like Joe-will have installed the source code. And guess what? Suddenly the .NET Framework becomes part of the user code and the unhandled exception error disappears forever and the sample works as per the demo.</p><p>Enjoy!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mythlandia.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KaNanga</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/how-to-implement-custom-field-validation-with-imperative-logic-in-vb-or-c</link><pubDate>Sat, 23 Apr 2011 09:35:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012946</guid><description><![CDATA[ <p>Validation... sweet!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/KaNanga.jpg?forceidenticon=false&amp;dt=635048916600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>