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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top