<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 7: Adding Features</title><link>http://www.asp.net</link><pubDate>Thu, 23 Aug 2012 13:18:33 GMT</pubDate><generator>umbraco</generator><description>Comments for Part 7: Adding Features</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/27472" rel="self" type="application/rss+xml" /><item><title>Comment Posted by jrbrady</title><link>http://www.asp.net/web-forms/tutorials/tailspin-spyworks/tailspin-spyworks-part-7</link><pubDate>Mon, 15 Nov 2010 17:11:56 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010956</guid><description><![CDATA[ <p>For all of you VB programmers who may be new to this, I will save you the headache I went through in translating the C# code for the Page_Load event of the PopularItems control:</p><p></p><p>    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load</p><p>        Using db As New CommerceEntities</p><p>            Try</p><p>                Dim query = (From ProductOrders In db.OrderDetails</p><p>                             Join SelectedProducts In db.Products On ProductOrders.ProductID Equals SelectedProducts.ProductID</p><p>                             Group ProductOrders By</p><p>                             ProductId = SelectedProducts.ProductID,</p><p>                             ModelName = SelectedProducts.ModelName</p><p>                             Into grp = Group</p><p>                             From orderGrp In grp</p><p>                             Select ModelName, ProductId, Quantity = grp.Sum(Function(o As OrderDetail) o.Quantity) Distinct</p><p>                             Where Quantity &gt; 0 Order By Quantity Descending).Take(5)</p><p></p><p>                RepeaterItemsList.DataSource = query</p><p>                RepeaterItemsList.DataBind()</p><p>            Catch ex As Exception</p><p>                Throw New Exception(&quot;ERROR: Unable to Load Popular Items - &quot; &amp; ex.Message.ToString(), ex)</p><p>            End Try</p><p>        End Using</p><p>    End Sub</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/jrbrady.jpg?forceidenticon=false&amp;dt=635048689200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by nosnetrom</title><link>http://www.asp.net/web-forms/tutorials/tailspin-spyworks/tailspin-spyworks-part-7</link><pubDate>Tue, 17 May 2011 17:09:16 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013199</guid><description><![CDATA[ <p>I am getting an error when implementing the AlsoPurchased control; it does not seem to be picking up the product ID from the querystring (or anywhere else, for that matter). I declared &quot;private int _ProductID;&quot; in the codebehind to the AlsoPurchased control, just after the public partial class AlsoPurchased. Any ideas? TIA!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/nosnetrom.jpg?forceidenticon=false&amp;dt=635048689200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by noblebat</title><link>http://www.asp.net/web-forms/tutorials/tailspin-spyworks/tailspin-spyworks-part-7</link><pubDate>Thu, 23 Aug 2012 13:18:33 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016267</guid><description><![CDATA[ <p>&lt;uc1:AlsoPurchased ID=&quot;AlsoPurchased1&quot; runat=&quot;server&quot; ProductId=&#39;&lt;%# Eval(&quot;ProductID&quot;) %&gt;&#39; /&gt; is not picking up the ProductID in the data source control for the property ProductId of the user control.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/noblebat.jpg?forceidenticon=false&amp;dt=635048689200000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>