private void LoadServiceCodes() { var ups = AvailableServices.FindById(ShippingMethod.ShippingProviderId, HccApp.CurrentStore); ShippingTypesRadioButtonList.DataSource = ups.ListAllServiceCodes(); ShippingTypesRadioButtonList.DataTextField = "DisplayName"; ShippingTypesRadioButtonList.DataValueField = "Code"; ShippingTypesRadioButtonList.DataBind(); }
private void LoadServiceCodes() { ShippingTypesRadioButtonList.Items.Clear(); var ups = AvailableServices.FindById(ShippingMethod.ShippingProviderId, HccApp.CurrentStore); ShippingTypesRadioButtonList.DataSource = ups.ListAllServiceCodes(); ShippingTypesRadioButtonList.DataTextField = "DisplayName"; ShippingTypesRadioButtonList.DataValueField = "Code"; ShippingTypesRadioButtonList.DataBind(); if (IsNew || ShippingTypesRadioButtonList.SelectedIndex == -1) { ShippingTypesRadioButtonList.Items[0].Selected = true; } }