Exemplo n.º 1
0
    /// <summary>
    /// 根据国家省份城市的编码绑定控件
    /// </summary>
    /// <param name="code"></param>
    public void SetCityCode(string code)
    {
        DataSet ds = CountryBLL.GetCityCode(code);

        this.SelectCountry(ds.Tables[0].Rows[0]["country"].ToString(), ds.Tables[0].Rows[0]["province"].ToString(), ds.Tables[0].Rows[0]["city"].ToString(), ds.Tables[0].Rows[0]["xian"].ToString());
    }