Dynamicweb 8 Documentation
Delete(String) Method
Example 

DB field name is OrderStateID.
Deletes the specified instance.
Syntax
'Declaration
 
Public Overloads Sub Delete( _ 
   ByVal IDStr As String _ 
) 
public void Delete( 
   string IDStr 
)

Parameters

IDStr
DB field name is OrderStateID.
Example
Delete line with order state on the page
class MyPage : System.Web.UI.Page
{
   private void DeleteButton_Click(System.Object sender, System.EventArgs e) 
   {
       String  osID = Base.ChkString(HttpContext.Current.Request.QueryString("StateID"));
       OrderState os = new OrderState();
       os.Delete(osID);
   }
}
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

OrderState Class
OrderState Members
Overload List

Send Feedback