Dynamicweb 8 Documentation
Delete(String,String) Method
Example 

The ID STR.
The lang STR.
Deletes the shipping with specified ID and language
Syntax
'Declaration
 
Public Overloads Sub Delete( _ 
   ByVal IDStr As String, _ 
   ByVal LangStr As String _ 
) 
public void Delete( 
   string IDStr,
   string LangStr 
)

Parameters

IDStr
The ID STR.
LangStr
The lang STR.
Example
Delete line with shipping 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 == "DeleteShippingLine")
       {
           String  shippingID = Base.ChkString(HttpContext.Current.Request.QueryString("ShippingID"));
           Shipping s = new Shipping();
           s.Delete(shippingID, "DK");
       }
   }
}
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

Shipping Class
Shipping Members
Overload List

Send Feedback