Dynamicweb 8 Documentation
DeleteByLanguage Method (Payment)
Example 

The language ID.
Deletes items by language.
Syntax
'Declaration
 
Public Sub DeleteByLanguage( _ 
   ByVal LanguageID As String _ 
) 
public void DeleteByLanguage( 
   string LanguageID 
)

Parameters

LanguageID
The language 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 == "DeletePayments")
       {
           String  languageID = Base.ChkString(HttpContext.Current.Request.QueryString("LanguageID"));
           Payment p = new Payment();
           p.Delete(languageID);
       }
   }
}
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

Send Feedback