当前位置: 代码迷 >> ASP.NET >> ASP.NET ListBox的有关问题
  详细解决方案

ASP.NET ListBox的有关问题

热度:4383   发布时间:2013-02-26 00:00:00.0
ASP.NET ListBox的问题
我单击按钮时,listbox选择记录的index总是为0!我知是因为postback的问题,请问我要得到我选择记录的index,该如何做呢?谢谢!有点急!

------解决方案--------------------------------------------------------
Label1.Text=ListBox1.SelectedIndex.ToString();