Dynamicweb 8 Documentation
GetOrders(String) Method
Example 

The SQL.
Gets the orders.
Syntax
'Declaration
 
Public Overloads Shared Function GetOrders( _ 
   ByVal SQL As String _ 
) As OrderCollection
public static OrderCollection GetOrders( 
   string SQL 
)

Parameters

SQL
The SQL.
Example
class MyPage : System.Web.UI.Page
{
   private void DoDelete()
   {
       string keyword = Base.ChkString(Request["searchField"]);
       string state = Base.ChkString(HttpContext.Current.Session["Ecom.Backend.Search.StateID"]);
       string startDate = Base.ChkString(Request["searchStartDate"]);
       string endDate = Base.ChkString(Request["searchEndDate"]);
       string shopID = Base.ChkString(HttpContext.Current.Session["Ecom.Backend.Search.ShopID"]);

       Dynamicweb.eCommerce.Orders.OrderCollection orderCol =  Dynamicweb.eCommerce.Orders.Order.getOrders(keyword, state, startDate, endDate, false, shopID);
       foreach(Dynamicweb.eCommerce.Orders.Order o in orderCol){
          //TODO: insert your code here
       }
   }
}
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

Order Class
Order Members
Overload List

Send Feedback