ddlStartTerm.Items.FindByText(foobar)

M

Mark

I have a dropdownlist that is dynamically populated. I want to make one of
the items be selected by default based on PART of the text that is
displayed. However, the FindByText method of the dropdownlist is looking
for a complete match. Aside from iterating through the entire collection
of list items, is there an easier way to find the matching item, and then
select it?

Thanks in advance.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top