C# Combobox如何加载jsonString
最近做一个项目,用到了.net技术,请教大牛们,Combobox 怎么加载webservice返回的json格式的数据。
部分代码:
responseJson = ws.findFastMailDeliverPageList(requestJson);
Hashtable responseMap = JsonConvert.DeserializeObject<Hashtable>(responseJson);
string success = responseMap["success"].ToString(); // true
string msg = responseMap["msg"].ToString(); // null
// 快递列表
string lcList = responseMap["lcList"].ToString();
this.comboBox1.DataSource = products;
this.comboBox1.DisplayMember = "name";
this.comboBox1.ValueMember = "num";