ASP.NET ListBox的问题
我单击按钮时,listbox选择记录的index总是为0!我知是因为postback的问题,请问我要得到我选择记录的index,该如何做呢?谢谢!有点急!
[解决办法]
Label1.Text=ListBox1.SelectedIndex.ToString();
发布时间: 2012-01-20 18:53:53 作者: rapoo
ASP.NET ListBox的问题
我单击按钮时,listbox选择记录的index总是为0!我知是因为postback的问题,请问我要得到我选择记录的index,该如何做呢?谢谢!有点急!
[解决办法]
Label1.Text=ListBox1.SelectedIndex.ToString();