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