怎么获取listbox里面的选中项
一个listbox,   里面列出的内容是c:\的文件夹的一个列表   
 想让一个lable显示listbox中选中那一行的内容   
 Lable1.Text=ListBox1.SelectedItem.Text;   
 结果总是这行出错,不知道为什么,请教!!!   
 以前对DropDownList使用SelectedItem.Text是很好用的,不知道是不是这个ListBox不太一样
------解决方案--------------------ListBox1.SelectedItem.ToString();
------解决方案--------------------你在什么事件里写的代码,报的是什么错
------解决方案--------------------你把AutoPostBack 
 选成True