Dynamicweb.eCommerce.Prices Namespace > Rounding Class > Delete Method : Delete(String) Method |
class MyPage : System.Web.UI.Page { private string roundId; private Dynamicweb.eCommerce.Prices.Rounding rounding; private void Page_Load(System.Object sender, System.EventArgs e) { roundId = HttpContext.Current.Request.QueryString["roundID"]; rounding = new Dynamicweb.eCommerce.Prices.Rounding(roundId); } private void DeleteButton_Click(System.Object sender, System.EventArgs e) { if (!string.IsNullOrEmpty(roundId)) { rounding.Delete(roundId); } Response.Redirect("../Lists/EcomList.aspx?type=ROUNDING"); Response.End(); } }
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