Dynamicweb 8 Documentation
getOrderstates Method
Example 

The state ID.
Gets the collection of the order states.
Syntax
'Declaration
 
Public Shared Function getOrderstates( _ 
   ByVal stateID As String _ 
) As OrderStateCollection
public static OrderStateCollection getOrderstates( 
   string stateID 
)

Parameters

stateID
The state ID.
Example
class MyPage : System.Web.UI.Page
{
   public void RenderOrderState( Rendering.Template t, Order order )
   {
      OrderStateCollection orderStates = OrderState.getOrderstates( order.StateID );
      if( orderStates != null ) {
          if( orderStates.Count > 0 ) {
             template.SetTag("Ecom:Order:Orderstate.Name", orderStates.Item(0).Name);
             template.SetTag("Ecom:Order:Orderstate.Description", orderStates.Item(0).Description);
         }
      }
   }
}
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

Send Feedback