SelectedIndex to dynamically created DropDownLists

F

falk

i've a dynamicaly created table containing dropdownlists in one column. i use
the standard aproach to set the selected index within the ASPX page like this:
<asp:DropDownList SelectedIndex='<%#
getCurrentIndex(...)>'></asp:DropDownList>

i checked the detection of the index within the CS code file with the
debugger and it works, but it does not have any influence. the shown
dropdownlist anytime shows the first choice, which would mean that the
selected index is set to -1.
it seems, that there is another event method i have to reimplement but i
dont know which one.
 

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
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top