<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>ASP.NET Dynamic Data Custom Form Formatting</title><link>http://www.asp.net</link><pubDate>Wed, 02 Jan 2013 21:32:15 GMT</pubDate><generator>umbraco</generator><description>Comments for ASP.NET Dynamic Data Custom Form Formatting</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33705" rel="self" type="application/rss+xml" /><item><title>Comment Posted by mjta</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Mon, 22 Dec 2008 12:36:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003128</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=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Ragan</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Fri, 26 Dec 2008 17:21:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003129</guid><description><![CDATA[ <p>Joe</p> <p>Can we see how to proceed when we have a change in our database? I mean if a new field is added what&#39;s the correct process to apply the change to LINQ?</p> <p>Regards</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Ragan.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JJ60764</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Fri, 06 Feb 2009 13:11:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003130</guid><description><![CDATA[ <p>Two very good points already included.</p> <p>My comment is more releated to the</p> <p>.NET Framework 3.5 Enhancements Training Kit update for SP1</p> <p>The first DD lab contains this line:</p> <p>7. Apply the DisplayName attribute to the ProductNumber property. To do this, add the following code above the property definition.</p> <p>[DisplayName(”Code”)]</p> <p>private object ProductNumber { get; set; }</p> <p>Unfortunately, DisplayName is not a viable attribute. It seems as this didn’t make it into the official sp1 release. It is sorely needed however, as everyone often has to give a column a “friendly name” instead of the straight-up database column name.</p> <p>Can a future video show what can be used instead?</p> <p>Thanks!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/JJ60764.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JJ60764</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Fri, 06 Feb 2009 13:34:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003131</guid><description><![CDATA[ <p>I posted my issue to the forum and received a very prompt response. Sorry for littering on your video page.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/JJ60764.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by klawonk</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Fri, 06 Mar 2009 17:11:34 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003132</guid><description><![CDATA[ <p>I would also like to see the process when your database changes.  I have tables that have multiple foreign keys that point to the same table (used for a pull down – IE LensFront and LensBack both point to the Lens table).  When you drop the DB schema into VS, it creates name like lens1 and lens2 instead of LensFront and LensBack (obviously, it wouldn’t know how to name them).  My problem is, every time the DB schema changes, I have to go back and change the names.  I would think VS should be smart enough to determine that only an column was added, so it will keep the foreign key names.  Not sure if you follow or not.</p><p></p><p>In any case, great videos!  I have learned a lot. </p><p>Thanks</p><p>KevinK</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/klawonk.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by the_N_Channel</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Mon, 13 Jul 2009 01:13:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003133</guid><description><![CDATA[ <p>Great video, but I think there are some more advanced uses of the DataAnnotations that could use some further elaboration, especially in DynamicData websites since it is so templated and annotation driven.</p><p></p><p>For example, I have a Customers table that has separate columns for first and last names. It has a 1:M relationship with both Orders and Phones. In the default Dynamic Data website, the display field for the foreign key will be the first name column. That&#39;s obviously problematic, so what I would like is for the full name to be displayed instead.</p><p></p><p>At first, I thought I would need to play with the auto-generated templates or create a slew of custom pages. But it it&#39;s far easier than that...</p><p></p><p>In this use-case, all one needs to do is create a partial class for the table in question, add a public property to the class that exposes the desired information, and then use the DisplayColumn annotation (<a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.displaycolumnattribute.aspx)" target="_blank">msdn.microsoft.com/</a> to the user-defined property.</p><p></p><p>Perhaps a series of mini-videos for data annotations are in order, or a reference to other tutorials where one finds more information about them (I imagine in ADO.NET Entity Services they appear a lot, though I haven&#39;t  seen those yet) would be a good thing to include in subsequent videos!   </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/the_N_Channel.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by wadebart</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Mon, 12 Apr 2010 17:33:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003134</guid><description><![CDATA[ <p>How do I do the same using C# instead of VB?  Better yet, what would book would you recommend that talks about this programming part of the .cs file?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/wadebart.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by wadebart</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Mon, 12 Apr 2010 20:17:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003135</guid><description><![CDATA[ <p>Figured it out using Date of Birth in a database field that I have created!!</p><p></p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Web;</p><p>using System.Web.DynamicData;</p><p>using System.ComponentModel.DataAnnotations;</p><p></p><p>/// &lt;summary&gt;</p><p>/// Summary description for Address</p><p>/// &lt;/summary&gt;</p><p>/// </p><p></p><p>[MetadataType(typeof(AddressMetadata))]</p><p>public partial class Address</p><p>{</p><p> </p><p>}</p><p></p><p>public class AddressMetadata</p><p>{</p><p>    [DisplayFormat(DataFormatString = &quot;{0:MM-dd-yyyy}&quot;)]</p><p>    public object DOB;</p><p>   </p><p>}</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/wadebart.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by nikolayp</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Mon, 19 Apr 2010 11:33:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000003136</guid><description><![CDATA[ <p>Thanks Joe for all videos!</p><p>Keep do it!</p><p>Kinds Regards</p><p></p><p>Nikolay Panchev</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/nikolayp.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KSilverstar</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Tue, 22 Mar 2011 11:13:36 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012568</guid><description><![CDATA[ <p>Great Videos, Keep them coming..</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/KSilverstar.jpg?forceidenticon=false&amp;dt=635049439200000000&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/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Sat, 23 Apr 2011 18:34:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012951</guid><description><![CDATA[ <p>You are a great teacher... thanks for your work!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/KaNanga.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mr41971</title><link>http://www.asp.net/web-forms/videos/aspnet-dynamic-data/aspnet-dynamic-data-custom-form-formatting</link><pubDate>Wed, 02 Jan 2013 21:32:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017103</guid><description><![CDATA[ <p>Hi, I love your excellent vids. One question though. I have a few tables with FirstName and LastName. Dynamic Data only shows the FirstName. How do I get it to show FirstName + &#39; &#39; + LastName?</p><p></p><p>Thank you for your assistance.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mr41971.jpg?forceidenticon=false&amp;dt=635049439200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>