<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>Examining the Edit Methods and Edit View</title><link>http://www.asp.net</link><pubDate>Wed, 24 Apr 2013 03:23:02 GMT</pubDate><generator>umbraco</generator><description>Comments for Examining the Edit Methods and Edit View</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/37158" rel="self" type="application/rss+xml" /><item><title>Comment Posted by Casper Hansen</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Tue, 12 Jun 2012 16:32:41 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015754</guid><description><![CDATA[ <p>Hi.</p><p></p><p>Very nice tutorial, I enjoyed it quite a bit to get me started on ASP.NET.</p><p></p><p>One thing I would&#39;ve liked though is, if SearchIndex was implemented on Index.</p><p></p><p>As it is now the table is with the modelItems are displayed in both.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/Casper%20Hansen.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by lakpa</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Thu, 16 Aug 2012 03:11:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016184</guid><description><![CDATA[ <p>Hi,</p><p>      Its a nice tutorial, but I am facing one problem.</p><p>@section Scripts isn&#39;t working for me. I get error over there.</p><p>Do you have any idea about it?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/lakpa.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ricka0</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Fri, 17 Aug 2012 15:10:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016198</guid><description><![CDATA[ <p>@lakpa @section Scripts isn&#39;t working for me</p><p>Can you post the question in <a rel="nofollow" href="http://forums.asp.net/1146.aspx" target="_blank">forums.asp.net/</a> ?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ricka0.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tarikdd</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Mon, 17 Sep 2012 17:45:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016450</guid><description><![CDATA[ <p>Hi, i like this tutorial, but I don&#39;t understand one thing.</p><p>How is @Html.TextBox(&quot;SearchString&quot;) using this search string, through what?</p><p>For @Html.DropDownList(&quot;movieGenre&quot;, &quot;All&quot;) we use ViewBag...</p><p>Thanks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/tarikdd.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ofrede</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Wed, 26 Sep 2012 06:54:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016520</guid><description><![CDATA[ <p>Love this tutorial! Really helpful!</p><p></p><p>What I would like was if the localization was implemented using NuGet.</p><p></p><p>I have taken the liberty of changing the script a little so it will work on danish computers - using Nuget.</p><p></p><p>As I am new to NuGet as well, others might find this semi-tutorial helpful:</p><p></p><p>When having this MvcMovie project open, click PROJECT and then Manage NuGet Packages... </p><p>Select &quot;Online&quot; and type &quot;globalize&quot; in the top-right search field. Then select to install &quot;jQuery Globalize&quot;. This will install the jQuery Globalize library in the projejcts Scripts folder.</p><p></p><p>And as in the original tutorial you should add a script. Note that the location of the scripts has changed a little (and that I am using danish input):</p><p></p><p>@Scripts.Render(&quot;~/bundles/jqueryval&quot;)</p><p>    &lt;script src=&quot;~/Scripts/jquery.globalize/globalize.js&quot;&gt;&lt;/script&gt; </p><p>    &lt;script src=&quot;~/Scripts/jquery.globalize/cultures/globalize.culture.da-DK.js&quot;&gt;&lt;/script&gt; </p><p>    &lt;script&gt; </p><p>        $.validator.methods.number = function (value, element) { </p><p>            return this.optional(element) || </p><p>                !isNaN(Globalize.parseFloat(value)); </p><p>        } </p><p>        $(document).ready(function () { </p><p>            Globalize.culture(&#39;da-DK&#39;); </p><p>        }); </p><p>    &lt;/script&gt; </p><p>    &lt;script&gt; </p><p>        jQuery.extend(jQuery.validator.methods, {     </p><p>            range: function (value, element, param) {         </p><p>                //Use the Globalization plugin to parse the value         </p><p>                var val = $.global.parseFloat(value); </p><p>                return this.optional(element) || ( </p><p>                    val &gt;= param[0] &amp;&amp; val &lt;= param[1]); </p><p>            } </p><p>        }); </p><p> </p><p>    &lt;/script&gt; </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ofrede.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by muhammad.umar600</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Mon, 01 Oct 2012 08:03:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016557</guid><description><![CDATA[ <p>Very nice and informative tutorial as compared to MVC3 tutorial. Nice way of explaining the things.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/muhammad.umar600.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hungnt.onmobi.vn</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Wed, 03 Oct 2012 01:11:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016567</guid><description><![CDATA[ <p>Please explain more detail about why did you use the variable ViewBag.movieGenre and how the dropdownlist is filled with all the genres and &quot;All&quot;.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hungnt.onmobi.vn.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ofrede</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Mon, 08 Oct 2012 06:15:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016589</guid><description><![CDATA[ <p>hungnt.onmobi.vn: All your questions are actually related:</p><p>ViewBag.movieGenre is populated with all the movie genres. And this variabel is used in the view SearchIndex in the tag: @Html.DropDownList(&quot;movieGenre&quot;, &quot;All&quot;).</p><p></p><p>The first argument point at ViewBag.movieGenre (which is how the dropdown list is poplulated with all the genres) and the second argument (&quot;All&quot;) is a &quot;default/empty value&quot; for the dropdown list. Hope this explains it a little more.</p><p></p><p>Personally I would like to add the SelectList (movieGenre) to my ViewModel but explaining how to do this is probably outside the scope of this fine tutorial.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ofrede.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Zev Spitz</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Sun, 28 Oct 2012 13:29:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016690</guid><description><![CDATA[ <p>Detailed and extensive tutorial.</p><p>I don&#39;t understand one point: the Contains method is case-sensitive, so if I pass in &#39;ghost&#39; as a querystring, &#39;Ghostbusters&#39; shouldn&#39;t be recognized.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Zev%20Spitz.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Zev Spitz</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Sun, 28 Oct 2012 13:38:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016691</guid><description><![CDATA[ <p>OK, I see. When generating the SQL statement, Entity Framework maps the Contains method to the LIKE operator, which is indeed case-insensitive.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Zev%20Spitz.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by LRaiz</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Sun, 09 Dec 2012 18:23:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016970</guid><description><![CDATA[ <p>I wonder if there is a way to avoid repeating the same @section Scripts code in every View cshtml file. For example, can everything related to globalization be moved to layout files?  </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/LRaiz.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by patr1c1a</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Fri, 18 Jan 2013 12:25:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018201</guid><description><![CDATA[ <p>The tutorial is really detailed  and helpful for people who are just beginning with ASP.</p><p>But I don&#39;t quite understand where it&#39;s setting up stuff for localization, adding js files and code, and then there&#39;s a line to add in web.config as well. It says &quot;As a temporary fix, you can add the globalization element to the projects root web.config file&quot;. Why is it a &quot;temporary&quot; fix? Does this need to be done as well as including globalize.js and the &lt;script&gt; in the Edit view or you have to pick one?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/patr1c1a.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by salman_sulaiman_1979</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Thu, 07 Feb 2013 14:44:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018374</guid><description><![CDATA[ <p>Thanks in advance Rick!</p><p>Great stuff!</p><p>~salman~</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/salman_sulaiman_1979.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by salman_sulaiman_1979</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Thu, 07 Feb 2013 14:53:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018375</guid><description><![CDATA[ <p>@patr1c1a </p><p>Yes Totally, i see what you mean. I am a begginer my self, and I can see that so much is definitely happening in the background that i am not aware of, again brings me back to the concept of isolation and the MVC seperation (model, view, control). I used to think of all those details upto the very tiny bits, but then I get lost and can&#39;t catch up with anything, so I have been trying to focus on the pieces (building blocks) which I need to go to the next stage of my applcation. </p><p>so what I meant to say, is perhaps there are newer approach to take care of the Globalization script and such. (globalization is important to me too, so I can relate to your concerns), I am sure it will become clearer as the tutorials become more advanced (I personally love it when it becomes confusing, i remember one someone said about the importance of being &quot;confused&quot;, how finding answers start with &quot;Confusion&quot; (or something)!</p><p></p><p>looking forward to the next tutorial page (many thanks Rick!) and good luck there patr1c1a and everyone else.</p><p></p><p>~Salman~</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/salman_sulaiman_1979.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by wyckster</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Fri, 08 Feb 2013 12:06:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018385</guid><description><![CDATA[ <p>&quot;The decimal field may require a common&quot;  should say &quot;comma&quot;</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/wyckster.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JLindfors</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Wed, 13 Feb 2013 09:12:43 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018419</guid><description><![CDATA[ <p>The jQuery validation also fails for the &quot;date&quot; field in locals that differ from the US local, like the EU countries etc. Adding the following to the script fixes the matter:</p><p></p><p> $.validator.methods.date = function (value, element) {</p><p>            return this.optional(element) ||</p><p>                !isDate(Globalize.parseDate(value));</p><p>        }</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/JLindfors.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Danny117</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Wed, 06 Mar 2013 12:19:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018588</guid><description><![CDATA[ <p>I made it this far. </p><p></p><p>argh!! vs2012 NUGET put the globalization.js script at a different location.  I would&#39;ve liked the globalization scripts part done with the bundle.config file which I found myself playing around with for an hour or so.  I don&#39;t understand the genre query it feels like the whole table is loaded then made distinct which would slow things down.</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Danny117.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by payini</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Mon, 11 Mar 2013 14:03:53 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018649</guid><description><![CDATA[ <p>Great tutorials. Thank you.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/payini.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by shkop</title><link>http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/examining-the-edit-methods-and-edit-view</link><pubDate>Wed, 24 Apr 2013 03:23:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018972</guid><description><![CDATA[ <p>Is the source code available for download?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/shkop.jpg?forceidenticon=false&amp;dt=635045116800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>