Dynamicweb 8 Documentation
DetailCollection Class
Members  Example 

Collection for product details objects
Object Model
DetailCollection ClassDetail Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
   public void RenderDetails(DetailCollection Details, Dynamicweb.Rendering.Template ParentTemplate, string LoopName)
   {
       if (ParentTemplate.LoopExists(LoopName))
       {
           Dynamicweb.Rendering.Template DetailTemplate = ParentTemplate.GetLoop(LoopName);

           foreach (Detail dtl in Details)
           {
               RenderDetail(dtl, DetailTemplate);
               DetailTemplate.CommitLoop();
           }
       }
   }

   private void RenderDetail(Detail dtl, Dynamicweb.Rendering.Template template)
   {
       //TODO: insert your code here
   }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Products.DetailCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DetailCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback