<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ScottGu's Blog - All Comments</title><link>http://weblogs.asp.net/scottgu/default.aspx</link><description>Scott Guthrie lives in Seattle and builds a few products for Microsoft</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>2008 ??? vs. ????????? 3.5 ?????? 2??? ???????????? ???????????? ?????? _.   &amp;middot; ??? ?????????, ????????? ??????</title><link>http://weblogs.asp.net/scottgu/archive/2007/08/04/fixes-for-common-vs-2008-and-net-3-5-beta2-issues.aspx#6601601</link><pubDate>Fri, 05 Sep 2008 06:38:14 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6601601</guid><dc:creator>2008 ??? vs. ????????? 3.5 ?????? 2??? ???????????? ???????????? ?????? _.   · ??? ?????????, ????????? ??????</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2008 ??? vs. ????????? 3.5 ?????? 2??? ???????????? ???????????? ?????? _. &amp;nbsp; &amp;amp;middot; ??? ?????????, ????????? ??????&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6601601" width="1" height="1"&gt;</description></item><item><title>re: Quick Update</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/quick-update.aspx#6600930</link><pubDate>Fri, 05 Sep 2008 00:24:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6600930</guid><dc:creator>aspAnn</dc:creator><description>&lt;p&gt;Good News&lt;/p&gt;
&lt;p&gt;Thanks Scottgu !&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6600930" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6600917</link><pubDate>Fri, 05 Sep 2008 00:14:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6600917</guid><dc:creator>defaultexp</dc:creator><description>&lt;p&gt;It's great, I want to see the release version of ASP .NET MVC as soom as possible!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6600917" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6600914</link><pubDate>Fri, 05 Sep 2008 00:13:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6600914</guid><dc:creator>Adam Carasso</dc:creator><description>&lt;p&gt;In the 4th screen shot shouldn&amp;#39;t the form action be /Products/Save, not /Products/Create? In any case I have loved using ASP.NET MVC and look forward to upgrading.&lt;/p&gt;
&lt;p&gt;--Adam Carasso&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6600914" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6600376</link><pubDate>Thu, 04 Sep 2008 20:39:31 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6600376</guid><dc:creator>Areg Sarkissian</dc:creator><description>&lt;p&gt;Thanks for the update I was happy to see a TryUpdateModel version was included, which I was advocating. Thanks for that as well.&lt;/p&gt;
&lt;p&gt;Also I liked the overload on ValidationMessage() that allows for a custom error message. Can we also get an overload on VaidationSummary() in the form of&lt;/p&gt;
&lt;p&gt;VaidationSummary(Dictionary&amp;lt;string /*FormFieldName*/,string /*CustomBindingError*/&amp;gt;)&lt;/p&gt;
&lt;p&gt;So that we can specify custom errors for binding errors on form fields such as the conversion of integer or decimal strings, when we use VaidationSummary instead of ValidationMessage to display the error.&lt;/p&gt;
&lt;p&gt;Thanks for a great post and all your and the MVC teams efforts.&lt;/p&gt;
&lt;p&gt;One note: Your previous suggestion to bind all Model fields using&lt;/p&gt;
&lt;p&gt;UpdateModel(c.Address, Request.Form.AllKeys, &amp;quot;Address&amp;quot;) &lt;/p&gt;
&lt;p&gt;should be something like&lt;/p&gt;
&lt;p&gt;UpdateModel(c.Address, c.AllWritablePropertyNames, &amp;quot;Address&amp;quot;) instead, as you don&amp;#39;t want to bind all form elements.&lt;/p&gt;
&lt;p&gt;Obviously this would require the developer defining an AllWritablePropertyNames property on models,&lt;/p&gt;
&lt;p&gt;which could be implemented as a Base Class that all models derive from.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6600376" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6600002</link><pubDate>Thu, 04 Sep 2008 19:01:13 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6600002</guid><dc:creator>Mark Leistner</dc:creator><description>&lt;p&gt;Nevermind my previous question on nullable parameters. &amp;nbsp;I answered my own question.&lt;/p&gt;
&lt;p&gt;I had model binding setup using ComplexModelBinder for the default binder, and int? is a complex type... so it was trying to use the binder for it and not working as expected.&lt;/p&gt;
&lt;p&gt;Thanks for the great resource on all things ASP.Net&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6600002" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6599986</link><pubDate>Thu, 04 Sep 2008 18:57:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6599986</guid><dc:creator>Brian Lowry</dc:creator><description>&lt;p&gt;I may have missed a comment about this, but I was curious as to why the attributes take string values, and not Enum flags (Post | Get). I like to avoid string with teeth whenever possible, and since verbs aren&amp;#39;t going to change much, I don&amp;#39;t see the reason for strings.&lt;/p&gt;
&lt;p&gt;Is there a reason for this? &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6599986" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6599924</link><pubDate>Thu, 04 Sep 2008 18:39:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6599924</guid><dc:creator>exptrade2000</dc:creator><description>&lt;p&gt;UpdateModel method requires that the keys be provided. So if I want to update every single property on the instance of the object, I have to specify every key, right? Would it be possible to have UpdateModel overload that does not require any keys to be passed but to instead uses properties as keys and tries to find appropriate form entry. In other words update every property for which I have a form field. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6599924" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6599915</link><pubDate>Thu, 04 Sep 2008 18:37:52 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6599915</guid><dc:creator>Mark Leistner</dc:creator><description>&lt;p&gt;Does mapping to a controller action with a nullable type parameter still work? &amp;nbsp;I&amp;#39;ve been unable to get it working with a nullable int, but it works fine with a string or an int.&lt;/p&gt;
&lt;p&gt;public ActionResult Test(int? id)&lt;/p&gt;
&lt;p&gt;/SomeController/Test/123 returns null.&lt;/p&gt;
&lt;p&gt;Am I missing something?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6599915" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Preview 5 and Form Posting Scenarios</title><link>http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx#6599764</link><pubDate>Thu, 04 Sep 2008 17:49:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6599764</guid><dc:creator>Chris Hughes</dc:creator><description>&lt;p&gt;I&amp;#39;ve downloaded MVC preview 5 and experimenting with this concept. It looks great, but I have one question about ModelBinding:&lt;/p&gt;
&lt;p&gt;It seems you can only define the Model serialization method on the object itself by overriding ToString, or implementing IFormattable/IConvertible (correct me if I am wrong). I am however in the situation that I am using a Business Object layer in a different assembly and I want to serialize these objects so that I can use ModelBinding. Because they are in a different assembly I can&amp;#39;t use partial classes. Is there a workaround for this? A nice solution would be if you could override the serialization on the &amp;nbsp;ModelBinder class itself, then both the serialization and deserialization logic would be in the same place and it would be available to any object you put in it.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6599764" width="1" height="1"&gt;</description></item></channel></rss>