user576510
user576510

Reputation: 5905

in drop down list how to select text by index?

Please guide me in asp.net drop down list how to find text of an item if its index is known. Please also guide me is there any issue in that ?

Thanks

Upvotes: 0

Views: 823

Answers (1)

Adil
Adil

Reputation: 148120

You can do using index with Items Collection to get the text.

string text = Dropdownlist1.Items[index].Text;

There is no issue to access the text of dropdown.

Upvotes: 3

Related Questions