Dynamicweb.eCommerce.Orders Namespace : ShippingCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class ShippingCollection Inherits System.Collections.ObjectModel.Collection(Of Shipping)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class ShippingCollection : System.Collections.ObjectModel.Collection<Shipping>
class MyPage : System.Web.UI.Page { public String GetShippingData() { System.Text.StringBuilder shipStr = new System.Text.StringBuilder(); shipStr.Append("<table>"); ShippingCollection ships = Shipping.getShippingmethods(); foreach( Shipping ship in ships ) { String checkedStr = ""; if( ship.CountryRelation(countryID).IsDefault ) checkedStr = "CHECKED"; else checkedStr = ""; shipStr.Append("<tr>"); shipStr.Append("<td><input type=""radio"" value=""" + ship.ID + """ " + checkedStr + ">" + ship.Name + " - " + ship.Description + "</td>"); shipStr.Append("</tr>"); } shipStr.Append("</table>") return shipStr.ToString(); } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Orders.ShippingCollection
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