Datalist selected item

G

Guest

I want a certain item to be marked as selected when the datalist is created
for the first time the value of this item is taken from another page through
request.querystring

I think i need t find the ondex of this value or something like that
Is there is a way to do so

I need something like we do in ListItem control
listitem1.SelectedIndex =
listitem1.Items.IndexOf(lst.Items.FindByText(value));
 

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

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top