<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>Getting Started with ASP.NET 4.5 Web Forms - Shopping Cart</title><link>http://www.asp.net</link><pubDate>Wed, 06 Feb 2013 07:58:15 GMT</pubDate><generator>umbraco</generator><description>Comments for Getting Started with ASP.NET 4.5 Web Forms - Shopping Cart</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/42940" rel="self" type="application/rss+xml" /><item><title>Comment Posted by bfallar3</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Fri, 24 Aug 2012 07:14:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016275</guid><description><![CDATA[ <p>In ShopingCartActions.cs class, the public List GetCartItems, must be List&lt;CartItem&gt;.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/bfallar3.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mohramzan</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Tue, 28 Aug 2012 08:53:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016325</guid><description><![CDATA[ <p>Two typos </p><p>1:- In productcontext </p><p>it should be  public DbSet&lt;CartItem&gt; ShoppingCartItems { get; set; } </p><p>2:- As bfallar3 said</p><p>GetCartItems should return a list of CartItem so the method signature will be as </p><p>public List&lt;CartItem&gt; GetCartItems()</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/mohramzan.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sayitfast</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Tue, 28 Aug 2012 14:12:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016326</guid><description><![CDATA[ <p>Thanks those corrections made it all work for me... </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/sayitfast.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by makings</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Tue, 04 Sep 2012 07:27:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016374</guid><description><![CDATA[ <p>Just curious, on the shopping cart page, has anyone tried sorting the grid by the product name? I&#39;m doing something similar (e.g. listing a FK description), and I get an  &quot;Instance property &#39;DestinationDescription&#39; is not defined for type &#39;SAData.SelfAssessment&#39; &quot; exception...</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/makings.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cshyan</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Mon, 24 Sep 2012 03:51:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016502</guid><description><![CDATA[ <p>i get this error msg when press addtocart</p><p></p><p>Server Error in &#39;/&#39; Application.</p><p>--------------------------------------------------------------------------------</p><p> Parser Error </p><p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. </p><p>Parser Error Message: &#39;WingTipsToys.AddToCart&#39; is not allowed here because it does not extend class &#39;System.Web.UI.Page&#39;.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/cshyan.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pmossel</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Wed, 26 Sep 2012 19:38:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016530</guid><description><![CDATA[ <p>in reference to the comment from cshyan: the AddToCart() method must be declared in class ShoppingCartAction.cs, not in a code-behind of a web page.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/pmossel.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by kov007z</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Wed, 26 Sep 2012 21:31:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016531</guid><description><![CDATA[ <p>In reference to the comment from pmossel, could you please supply an</p><p>example of how/where AddToCart() should be added? I&#39;m getting the same </p><p>error as cshyan.</p><p></p><p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/kov007z.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tomfitz</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Thu, 27 Sep 2012 13:19:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016534</guid><description><![CDATA[ <p>Thank you for the feedback about the missing generic parameters in the ProductContext class and the GetCartItems method. This topic has been fixed to include those parameters.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/tomfitz.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mfortress</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Sun, 30 Sep 2012 14:29:05 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016552</guid><description><![CDATA[ <p>Re:  the comment from cshyan - I was getting the same error - Parser Error Message: &#39;WingTipsToys.AddToCart&#39; is not allowed here because it does not extend class &#39;System.Web.UI.Page&#39;.</p><p></p><p>After looking at many files in the solution, trying to find an answer, I started noticing that alot of the WingtipToys namespace references had different captial letters.  Some said WingTipToys, and some said WingtipToys.  (The first &quot;T&quot; was capitalized in only some cases.)</p><p></p><p>I don&#39;t know why some namespace references were spelled differently.  However, I did remember that the C# language is case sensitive.  So, I thought that might be a problem.</p><p></p><p>I did a global search and replace across the entire solution, to replace all occurences of wingtiptoys (case-insensitive) with WingtipToys.  There were 73 replacements in my solution.  (I also checked the box to leave all the files with replacements open, in case the change didn&#39;t work, and I had to manually change some replacements again.)</p><p></p><p>Long story short - the standardized spelling for all references to WingtipToys in the solution seemed to do the trick.  The &quot;Add Item to Cart&quot; tutorial worked just fine after the changes.</p><p></p><p>I hope this helps.</p><p></p><p>Thanks.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mfortress.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by saraandstuart</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Tue, 30 Oct 2012 05:14:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016704</guid><description><![CDATA[ <p>Thank you all for the comments, these helped me get this section of the tutorial working correctly.</p><p></p><p>In addition to the above I found that you must create the AddToCart web form as a new &quot;Web Form using Master Page&quot; for it to work properly.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/saraandstuart.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ajdluistro</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Thu, 15 Nov 2012 02:42:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016805</guid><description><![CDATA[ <p>Hello Guys,</p><p></p><p>I&#39;m having a trouble with GetTotal.</p><p></p><p>Below is the result of the build error:</p><p></p><p>Error	1	</p><p>&#39;WingtipToys.ShoppingCart&#39; does not contain a definition for &#39;GetTotal&#39; and no extension method &#39;GetTotal&#39; accepting a first argument of type &#39;WingtipToys.ShoppingCart&#39; could be found (are you missing a using directive or an assembly reference?)</p><p></p><p>Please help</p><p></p><p>Thanks</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ajdluistro.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by maximeF</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Thu, 15 Nov 2012 17:20:08 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016814</guid><description><![CDATA[ <p>In the class ShoppingCart.cs there is an error in function Page_Load().</p><p>The first line of this function:</p><p> &quot;lineShoppingCart usersShoppingCart = new WingtipToys.ShoppingCart();&quot; must be replaced by </p><p>&quot;ShoppingCartActions usersShoppingCart = new WingtipToys.Logic.ShoppingCartActions();&quot;</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/maximeF.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by gioasl</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Sat, 01 Dec 2012 13:13:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016907</guid><description><![CDATA[ <p>Great for beginners. I do my first steps in Asp.NET with this tutorial.</p><p>I have one question: How can I extend default, implemented membership in ASP.NET (VS 2012) so that I could include some extra fields to it? (besides those which are included already in Memberships Table - Email, IsApproved, IsLockedOut etc.)</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/gioasl.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by wissam1</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Tue, 04 Dec 2012 01:14:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016926</guid><description><![CDATA[ <p>Thank you for the useful article and for the detailed explanation.</p><p>I want to understand why when you want to create CartItem object you set explicity the Product property but from my understanding i know that this property is a navigation propert and is used for the the relation between the CartItem and the Product objects.</p><p></p><p>Your help is highly appreciated.</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/wissam1.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jcschiav</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Wed, 05 Dec 2012 18:52:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016944</guid><description><![CDATA[ <p>HI All,</p><p></p><p>I am running to this error:</p><p></p><p>Parser Error</p><p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.</p><p></p><p>Parser Error Message: &#39;WingTip_Toys.AddToCart&#39; is not allowed here because it does not extend class &#39;System.Web.UI.Page&#39;.</p><p></p><p>Source Error:</p><p></p><p>Line 1:  &lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;AddToCart.aspx</p><p>Any suggestions?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jcschiav.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by asadazmat</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Fri, 14 Dec 2012 04:28:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017006</guid><description><![CDATA[ <p>Thanks Erik.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/asadazmat.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Lori Brooke</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Fri, 11 Jan 2013 16:42:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018164</guid><description><![CDATA[ <p>In regards to error on AddToCart.aspx:</p><p>Server Error in &#39;/&#39; Application.</p><p>--------------------------------------------------------------------------------</p><p></p><p>Parser Error </p><p>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. </p><p></p><p>Parser Error Message: &#39;Wingtip_Toys.AddToCart&#39; is not allowed here because it does not extend class &#39;System.Web.UI.Page&#39;.</p><p></p><p>Source Error: </p><p></p><p></p><p>Line 1:  &lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;AddToCart.aspx.cs&quot; Inherits=&quot;Wingtip_Toys.AddToCart&quot;%&gt;</p><p>Line 2:  </p><p>Line 3:  &lt;!DOCTYPE html&gt; </p><p></p><p>Source File: /AddToCart.aspx    Line: 1 </p><p></p><p>I discovered that the Inherits=&quot;Wingtip_Toys.AddtoCart&quot; value did not match the class created in AddToCart.aspx.cs, which is WingtipToys.  Once I changed it to &quot;WingtipToys&quot; it was fine.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Lori%20Brooke.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amnesya</title><link>http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/shopping-cart</link><pubDate>Wed, 06 Feb 2013 07:58:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018354</guid><description><![CDATA[ <p>in file ShoppingCart.aspx.cs the line &#39;ShoppingCartTitle.InnerText = &quot;Shopping Cart is Empty&quot;;&#39; show the error: The Name ShoppingCartTitle does not exist in the current context.</p><p></p><p>Someone had this error?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/amnesya.jpg?forceidenticon=false&amp;dt=635046231000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>