<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>Part 9: Registration and Checkout</title><link>http://asp.net</link><pubDate>Mon, 27 May 2013 07:05:47 GMT</pubDate><generator>umbraco</generator><description>Comments for Part 9: Registration and Checkout</description><language>en</language><atom:link href="http://asp.net/rss/comments/27633" rel="self" type="application/rss+xml" /><item><title>Comment Posted by stevek123</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Mon, 20 Jun 2011 23:19:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013569</guid><description><![CDATA[ <p>The Order class was already added in part 8 of this tutorial.  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/stevek123.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by stevek123</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Mon, 20 Jun 2011 23:29:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013570</guid><description><![CDATA[ <p>In the register post action, you get an error because &quot;ErrorCodeToString&quot; is not defined.  You can fix this by copying the string out of the LogOn post action (it doesn&#39;t use &quot;ErrorCodeToString&quot;) or you can open up the completed project and copy the ErrorCodeToString method at the bottom of the AccountController class into your project.  </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/stevek123.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by rhvarona</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Sat, 25 Jun 2011 15:20:22 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013614</guid><description><![CDATA[ <p>Is there a better way to hook into the successful logon/validation and registration than adding a line to the function?  Maybe some sort of event listener, so I dont have to change the authentication and registration code.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/rhvarona.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by samarmir</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Tue, 18 Oct 2011 13:15:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014450</guid><description><![CDATA[ <p>Hi </p><p>Thanks for the tip regarding the AccountController class, however copying the ErrorCodeToString method, still does not solve the problem. You just get the error &quot;The password retrieval (question/answer) provided is invalid. Please check the value and try again.&quot;</p><p></p><p>The quick fix to this is simply to hardcode values into the CreateUser method (inside AccountController.cs) like this:</p><p></p><p>Membership.CreateUser(model.UserName, model.Password, model.Email, &quot;the question&quot;, &quot;the answer&quot;, true, null, out createStatus);</p><p></p><p>This will solve the problem. The correct procedure is of course to either remove the password retrieval facility using the ASP.NET Configuration Tool or have 2 extra textboxes that takes the password retrieval question and answer. </p><p></p><p>Sincerely</p><p></p><p>Mohammad</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/samarmir.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Rich dvc</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Fri, 21 Oct 2011 17:56:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014479</guid><description><![CDATA[ <p>For the ErrorCodeToString problem -- I noticed that the AccountModels class contained the ErrorCodeToString procedure, so I just copied it to the AccountController page.  That appears to have solved the problem as I was able to then run the application.  I then commented out the ErrorCodeToString procedure in the AccountModels class, and the app still worked.  I noticed that this tutorial is not developing this sample app the same as the completed MvcMusicStore app that I downloaded.  I did not see any cshtml pages -- in the completed sample - just aspx pages.  Was the completed sample not using Razor?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Rich%20dvc.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vallnerik</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Thu, 05 Jul 2012 00:19:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015915</guid><description><![CDATA[ <p>Based on other members comments, I was able to fix the issue.</p><p>1.) In AccountModel.cs add the following</p><p>        [Required]</p><p>        [Display(Name = &quot;Password Retrieval Question&quot;)]</p><p>        public string PasswordRetrievalQuestion { get; set; }</p><p></p><p>        [Required]</p><p>        [Display(Name = &quot;Password Retrieval Answer&quot;)]</p><p>        public string PasswordRetrievalAnswer { get; set; }</p><p></p><p>2.) In Register.cshtml add</p><p>            &lt;div class=&quot;editor-label&quot;&gt;</p><p>                @Html.LabelFor(m =&gt; m.PasswordRetrievalQuestion)</p><p>            &lt;/div&gt;</p><p>            &lt;div class=&quot;editor-field&quot;&gt;</p><p>                @Html.TextBoxFor(m =&gt; m.PasswordRetrievalQuestion)</p><p>                @Html.ValidationMessageFor(m =&gt; m.PasswordRetrievalQuestion)</p><p>            &lt;/div&gt;</p><p></p><p>            &lt;div class=&quot;editor-label&quot;&gt;</p><p>                @Html.LabelFor(m =&gt; m.PasswordRetrievalAnswer)</p><p>            &lt;/div&gt;</p><p>            &lt;div class=&quot;editor-field&quot;&gt;</p><p>                @Html.TextBoxFor(m =&gt; m.PasswordRetrievalAnswer)</p><p>                @Html.ValidationMessageFor(m =&gt; m.PasswordRetrievalAnswer)</p><p>            &lt;/div&gt;</p><p>3.) In AccountController.cs replace the Membership.CreateUser with</p><p>Membership.CreateUser(model.UserName, model.Password, model.Email, model.PasswordRetrievalQuestion, model.PasswordRetrievalAnswer, true, null, out createStatus);</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/vallnerik.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by suicida</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Wed, 26 Sep 2012 14:03:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016527</guid><description><![CDATA[ <p>I have a question. I hope it can be answered here.</p><p></p><p>What happens if I don&#39;t write the line:</p><p></p><p>[Bind(Exclude = &quot;OrderId&quot;)]</p><p></p><p>I did it and still works. I&#39;m not sure what this does.</p><p></p><p>Thank you!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/suicida.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by b_will</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Thu, 25 Oct 2012 11:49:50 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016680</guid><description><![CDATA[ <p>@vallnerik  - thanks for the update.  That worked, although when you have items in your cart, then check out, upon registering, you should be taken directly to the checkout form to enter your name, address, etc.  This isn&#39;t happening.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/b_will.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jaimeml</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Mon, 26 Nov 2012 09:27:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016878</guid><description><![CDATA[ <p>How does this all translate to MVC 4 and the new WebMatrix/WebSecurity? The Register Post Method includes two lines like the following:</p><p></p><p>WebSecurity.CreateUserAndAccount(model.UserName, model.Password);</p><p>WebSecurity.Login(model.UserName, model.Password);</p><p></p><p>After Login I am trying to use &quot;WebSecurity.IsAuthenticated&quot; to perform some functionlity depending on this status, but it always returns false.</p><p></p><p>Shouldn&#39;t it return true after haveing called Login?</p><p></p><p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/jaimeml.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by payini</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Mon, 06 May 2013 17:57:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019054</guid><description><![CDATA[ <p>Great tutorial. Thank you.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/payini.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by angiemango</title><link>http://asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-9</link><pubDate>Mon, 27 May 2013 07:05:47 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019184</guid><description><![CDATA[ <p>So boring</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/angiemango.jpg?forceidenticon=false&amp;dt=635072422800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>