Dynamicweb 8 Documentation
RemoveItem Method
Example 

The item ID.
Removes the item.
Syntax
'Declaration
 
Public Sub RemoveItem( _ 
   ByVal itemID As String _ 
) 
public void RemoveItem( 
   string itemID 
)

Parameters

itemID
The item ID.
Example
class MyPage : System.Web.UI.Page
{
   private void DelProductItem()
   {
       Product prod = new Product();
       prod = (Product)Session["Ecom.Backend.Product"];

       string itemID = HttpContext.Current.Request.QueryString["itemID"];

       prod.RemoveItem(itemID);
       ProductItem pi = new ProductItem();
       pi.Delete(itemID, prod.ID);
   }
}
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