<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7563542181873269057.post8736560222557420798..comments</id><updated>2011-03-12T07:55:30.552-07:00</updated><category term='flagsattribute'/><category term='bit'/><category term='comma separated values'/><category term='bug report'/><category term='string manipulation'/><category term='bitwise'/><category term='control'/><category term='errormessageresourcetype'/><category term='javascript'/><category term='.net 3.5'/><category term='fully qualified name'/><category term='c# 2.0'/><category term='bug'/><category term='registry'/><category term='bitwise enumeration'/><category term='nant'/><category term='system.componentmodel'/><category term='tagcloud'/><category term='tag'/><category term='System.Reflection'/><category term='validationattribute'/><category term='template'/><category term='demo'/><category term='validator'/><category term='follow-up'/><category term='assembly'/><category term='c# 3.0'/><category term='validation'/><category term='library'/><category term='truncate'/><category term='string'/><category term='c#'/><category term='contentplaceholder'/><category term='reflector'/><category term='itextcontrol'/><category term='css'/><category term='masterpage'/><category term='model binder'/><category term='shell'/><category term='keyword'/><category term='displayname'/><category term='nant script'/><category term='httpmodule'/><category term='.net'/><category term='redirect'/><category term='flags'/><category term='custom attribute'/><category term='flags enumeration'/><category term='2008'/><category term='asp.net mvc'/><category term='utility'/><category term='web.config'/><category term='scripting'/><category term='modelbinder'/><category term='301 redirect'/><category term='tool'/><category term='attribute'/><category term='defaultmodelbinder'/><category term='errormessageresourcename'/><category term='moved permanently'/><category term='enumeration'/><category term='MethodInfo'/><category term='format'/><category term='system.componentmodel.dataannotations'/><category term='regular expression'/><category term='http status code'/><category term='bitwise-or'/><category term='visual studio'/><category term='var'/><category term='Reflection'/><category term='batch script'/><category term='strong name'/><category term='displaynameattribute'/><category term='substring'/><category term='build'/><category term='microsoft'/><category term='asp.net'/><category term='.net 2.0'/><category term='sourcesafe'/><category term='permanent redirect'/><category term='relative url'/><category term='absolute url'/><category term='htmlhelper'/><category term='batch file'/><category term='Invoke'/><category term='recursion'/><title type='text'>Comments on .NET Addict: ASP.NET MVC Flags Enumeration Model Binder</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.nathan-taylor.net/feeds/8736560222557420798/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html'/><author><name>Nathan Taylor</name><uri>http://www.blogger.com/profile/00393274913652205256</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_ZIHyZ-EOj1g/SvCOycYk_tI/AAAAAAAAABg/Bjs-HfXjX30/S220/5403f2d49d2f2501d178e89e6ef87853.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-2398443222641065330</id><published>2011-03-12T07:55:30.552-07:00</published><updated>2011-03-12T07:55:30.552-07:00</updated><title type='text'>@dh What is the behavior you are experiencing with...</title><content type='html'>@dh What is the behavior you are experiencing with nullables? It shouldn&amp;#39;t be too difficult to address.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/2398443222641065330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/2398443222641065330'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1299941730552#c2398443222641065330' title=''/><author><name>Nathan Taylor</name><uri>http://www.blogger.com/profile/00393274913652205256</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_ZIHyZ-EOj1g/SvCOycYk_tI/AAAAAAAAABg/Bjs-HfXjX30/S220/5403f2d49d2f2501d178e89e6ef87853.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-692377750'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-1747125628224665297</id><published>2011-03-12T04:58:06.651-07:00</published><updated>2011-03-12T04:58:06.651-07:00</updated><title type='text'>Great work! Script does not work with nullable enu...</title><content type='html'>Great work! Script does not work with nullable enumeration properties.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/1747125628224665297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/1747125628224665297'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1299931086651#c1747125628224665297' title=''/><author><name>dh</name><uri>http://www.blogger.com/profile/11258313798885010593</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1815316919'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-8642472726976932279</id><published>2010-11-25T07:15:02.428-07:00</published><updated>2010-11-25T07:15:02.428-07:00</updated><title type='text'>I&amp;#39;m glad you found this useful!</title><content type='html'>I&amp;#39;m glad you found this useful!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/8642472726976932279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/8642472726976932279'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1290694502428#c8642472726976932279' title=''/><author><name>Nathan Taylor</name><uri>http://www.blogger.com/profile/00393274913652205256</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_ZIHyZ-EOj1g/SvCOycYk_tI/AAAAAAAAABg/Bjs-HfXjX30/S220/5403f2d49d2f2501d178e89e6ef87853.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-692377750'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-3694531457520094205</id><published>2010-11-25T05:44:14.521-07:00</published><updated>2010-11-25T05:44:14.521-07:00</updated><title type='text'>Sorry, the problem was just on my code. Thanks any...</title><content type='html'>Sorry, the problem was just on my code. Thanks anyways this is big help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/3694531457520094205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/3694531457520094205'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1290689054521#c3694531457520094205' title=''/><author><name>Vincent Calaor</name><uri>http://www.blogger.com/profile/06585703511290269339</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-896002276'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-3412356505906302410</id><published>2010-11-25T05:21:45.402-07:00</published><updated>2010-11-25T05:21:45.402-07:00</updated><title type='text'>I am using your code and it works great. But I am ...</title><content type='html'>I am using your code and it works great. But I am having issue after a postback, It selects other checkbox tha I did not tick. It randomly do that. e.g. when I have 5 items on my enumeration and try to unselect all then just select one, after a post back the first item is also selected aside from the one I selected.&lt;br /&gt;&lt;br /&gt;Are you encountering this too?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/3412356505906302410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/3412356505906302410'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1290687705402#c3412356505906302410' title=''/><author><name>Vincent Calaor</name><uri>http://www.blogger.com/profile/06585703511290269339</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-896002276'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-1167821178303996620</id><published>2010-09-06T07:22:50.660-06:00</published><updated>2010-09-06T07:22:50.660-06:00</updated><title type='text'>@swautier,

You can use a for[each] loop inside yo...</title><content type='html'>@swautier,&lt;br /&gt;&lt;br /&gt;You can use a for[each] loop inside your view to accomplish this. Simply loop over the result of Enum.GetValues(Type) http://msdn.microsoft.com/en-us/library/system.enum.getvalues.aspx and for each iteration create a checkbox by hand with the value attribute set to the value of that loop iteration. Do not use Html.CheckBox().</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/1167821178303996620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/1167821178303996620'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1283779370660#c1167821178303996620' title=''/><author><name>Lakario</name><uri>http://www.blogger.com/profile/00393274913652205256</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_ZIHyZ-EOj1g/SvCOycYk_tI/AAAAAAAAABg/Bjs-HfXjX30/S220/5403f2d49d2f2501d178e89e6ef87853.jpeg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-692377750'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-4147869091797824876</id><published>2010-09-06T05:42:19.947-06:00</published><updated>2010-09-06T05:42:19.947-06:00</updated><title type='text'>Nathan,

Please forgive my ignorance: Although I&amp;#...</title><content type='html'>Nathan,&lt;br /&gt;&lt;br /&gt;Please forgive my ignorance: Although I&amp;#39;m a seasoned C# developer, I&amp;#39;m a newbie regarding ASP.NET and ASP.NET MVC.&lt;br /&gt;&lt;br /&gt;Q: How would you use this to create a set of checkboxes in your Edit form?&lt;br /&gt;&lt;br /&gt;TIA,</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/4147869091797824876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/4147869091797824876'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1283773339947#c4147869091797824876' title=''/><author><name>swautier</name><uri>http://swautier.myopenid.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1247220628'/></entry><entry><id>tag:blogger.com,1999:blog-7563542181873269057.post-2169719644629059869</id><published>2010-08-15T13:30:36.849-06:00</published><updated>2010-08-15T13:30:36.849-06:00</updated><title type='text'>thanks - this is very helpful</title><content type='html'>thanks - this is very helpful</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/2169719644629059869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7563542181873269057/8736560222557420798/comments/default/2169719644629059869'/><link rel='alternate' type='text/html' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html?showComment=1281900636849#c2169719644629059869' title=''/><author><name>Chadly</name><uri>http://www.blogger.com/profile/13663900921216299483</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.nathan-taylor.net/2010/06/aspnet-mvc-flags-enumeration-model.html' ref='tag:blogger.com,1999:blog-7563542181873269057.post-8736560222557420798' source='http://www.blogger.com/feeds/7563542181873269057/posts/default/8736560222557420798' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-48585731'/></entry></feed>
