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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top