在列表框中查找多个选择项的索引 [英] find index of multiple select items in listbox

查看:110
本文介绍了在列表框中查找多个选择项的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在asp.net和C#

工作我在列表框中选择了多个项目。

现在我想要所选项目的索引也是所选项目的索引


我浏览并找到了一个名为

" selectedindices.count"

但不幸的是,当我输入listbox1时,select弹出没有弹出。


任何帮助请

问候

cmrhema

hello
I am working in asp.net and C#
I am selecting multiple items in a list box.
Now I want a count of the seleted items also the index of the selected item

I browsed and found something called
" selectedindices.count "
but unfourtunately when i type listbox1 the selectedindices does not popup.

Any help please
regards
cmrhema

推荐答案

根据 http://msdn2.microsoft.com/en-us/lib...es(VS.71) .aspx

ListBox.SelectedIndices是.net1.1中的一个属性。

我的猜测是你拼写错误或没有正确的大小写。
As per http://msdn2.microsoft.com/en-us/lib...es(VS.71).aspx
ListBox.SelectedIndices is a property in .net1.1.
My guess is you were just spelling wrong or not having correct capitalization.



根据 http://msdn2.microsoft.com/en-us/lib...es(VS.71).aspx

ListBox.SelectedIndices是.net1.1中的属性。

我的猜测是你只是拼写错误或没有c正确的大写。
As per http://msdn2.microsoft.com/en-us/lib...es(VS.71).aspx
ListBox.SelectedIndices is a property in .net1.1.
My guess is you were just spelling wrong or not having correct capitalization.



感谢Plater的回复

但我使用的是asp.net 2.0和visual c#2005.

我写了ListBox1。但我所能追踪的是

selectedindex

selectedindexchanged

selectedvalue

selecteditem

selectionmode


selectedindices似乎无处可去


谢谢

cmrhema

Thanks Plater for the reply
But I am using asp.net 2.0 and visual c# 2005.
and I did write ListBox1. but all i could trace was
selectedindex
selectedindexchanged
selectedvalue
selecteditem
selectionmode


selectedindices seems nowhere in the list

thanks
cmrhema



感谢Plater的回复

但我使用的是asp.net 2.0和visual c#2005.

和我确实写了ListBox1。但我所能追踪的是

selectedindex

selectedindexchanged

selectedvalue

selecteditem

selectionmode


selectedindices似乎在列表中无处


谢谢

cmrhema
Thanks Plater for the reply
But I am using asp.net 2.0 and visual c# 2005.
and I did write ListBox1. but all i could trace was
selectedindex
selectedindexchanged
selectedvalue
selecteditem
selectionmode


selectedindices seems nowhere in the list

thanks
cmrhema



您好,

SelectedIndices仅出现在Windows应用程序环境中。

对于asp .net(我自己试过)迭代每个列表框中的项目

并检查他们选择的属性是否真实。


欢呼

Hello,
SelectedIndices appears only in windows application environment.
For asp .net (i tried this myself) iterate through each item of the list box
and check if their selected propert is true or not.

cheers


这篇关于在列表框中查找多个选择项的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆