Dynamicweb 8 Documentation
Copy Method (Product)
Example 

Copies this instance and saves it in the DB. This method like Clone method, but generates new ID and sets empty VariantID.
Syntax
'Declaration
 
Public Function Copy() As Product
public Product Copy()
Example
class MyPage : System.Web.UI.Page
{
   private Product product;
   public Product DoSave()
   {
       Product p = new Product();
       p = product.Copy();
       return p;
   }
}
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