运输控制 [英] Shipping Control

查看:110
本文介绍了运输控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何控制国家和运输控制中的州之间的关系?如何编辑现有关系或创建新关系!

How can I control the relation between the Country and the states in the Shipping Control? How can I edit existing relations or create new ones!

知道我已经知道这两个国家和地区。州名单与客户和网站中的网站条款部分具有约束力。订单经理。

Knowing that I have already knew that both the countries & the state lists are binding from the Site Terms Section in the Customers & orders Manager.

问候,

Kareem

推荐答案

<你可以在扩展性工具包的代码中找到这种关系....更具体地说,在shipping.ascx.cs控件中,你会发现这些代码行来处理状态下拉列表....

you can find this relationship in the code behind of the extensibility toolkit.... more specifically in the shipping.ascx.cs control you will find these code lines to handle states dropdownlist....

 

 if (selectedCountry == this.profileConfiguration.CountryCodeUS ||
         selectedCountry == this.profileConfiguration.CountryCodeCanada)
      {
        this.states.Items.Clear();
        this.states.Enabled = true;
        IList<StateProvince> stateList = RegionHelper.GetStateProvinces(selectedCountry);
        foreach (StateProvince state in stateList)
        {
          this.states.Items.Add(new ListItem(state.DisplayName, state.Id));
        }


让我知道它是否解释更多....

let me know if it explains more....


这篇关于运输控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆