1.Hashtable如何绑定到listbox
1
Hashtable ht = new Hashtable();
2
ht.Add("北京","010");
3
ht.Add("天津","020");
4
5
ListBox1.DataSource = ht;
6
ListBox1.DataValueField = "Key";
7
ListBox1.DataTextField = "Value";
8
ListBox1.DataBind();
9
2
3
4
5
6
7
8
9
2.asp.net 在listbox中实现上移、下移、置顶、置底效果
具体实现大家可以看下面代码;
default2.aspx
}
}