Dynamicweb 8 Documentation
UnitStock Property
Example 

Gets the stock of units.
Syntax
'Declaration
 
Public ReadOnly Property UnitStock As Double
public double UnitStock {get;}
Example
class MyPage : System.Web.UI.Page
{
   private Dynamicweb.Rendering.Template template;
   private Product product;
   public void ProductStock()
   {
       if (template.TagExists("Ecom:Product.Stock"))
       {
           template.SetTag("Ecom:Product.Stock", product.UnitStock);
       }
   }
}
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

Product Class
Product Members

Send Feedback