Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请在 asp.net 下拉列表中指导我如何在已知索引的情况下查找项目的文本。还请指导我有什么问题吗?
谢谢
您可以使用带有ItemsCollection 的索引来获取文本。
Items
string text = Dropdownlist1.Items[index].Text;
访问下拉列表的文本没有问题。