Dynamicweb.eCommerce.Prices Namespace > Price Class > Delete Method : Delete(String,String,String) Method |
class MyPage : System.Web.UI.Page { public void DoDelete() { Product prod = new Product(); prod = (Product)Session["Ecom.Backend.Product"]; string priceID = HttpContext.Current.Request.QueryString["priceID"]; string currID = HttpContext.Current.Request.QueryString["currID"]; Dynamicweb.eCommerce.Prices.Price prs = new Dynamicweb.eCommerce.Prices.Price(); if (string.IsNullOrEmpty(currID)) { prs.Delete(priceID, prod.ID); } else { prs.Delete(priceID, prod.ID, currID); } } }
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