Dynamicweb 8 Documentation
Delete(String) Method
Example 

The payment ID.
Deletes the payment with specified ID.
Syntax
'Declaration
 
Public Overloads Sub Delete( _ 
   ByVal IDStr As String _ 
) 
public void Delete( 
   string IDStr 
)

Parameters

IDStr
The payment ID.
Example
Delete line with payment method on the page
class MyPage : System.Web.UI.Page
{
   private void Page_Load(System.Object sender, System.EventArgs e) 
   {
       String CMD = HttpContext.Current.Request.QueryString("CMD");

       if(CMD == "DeletePaymentLine")
       {
           String  paymentID = Base.ChkString(HttpContext.Current.Request.QueryString("PaymentID"));
           Payment p = new Payment();
           p.Delete(paymentID);
       }
   }
}
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

Payment Class
Payment Members
Overload List

Send Feedback