[RESOLVED] can you bind an dropdownlist to a constant array?
I have a dropdownlist in my web form that will have dynamic content based on the selecteditem of ANOTHER dropdownlist on the same page.
I was wondering if I can bind this dynamic dropdownlist to an array that will always be constant (i'll have many of these constant arrays, but they all will have different data). I figured out how to bind it to an ArrayList but i'm not sure if that will work because i don't know whatthe value of the SelectedIndex will be if I just fill the dropdown list with an ArrayList.
Hope this makes sense. Thanks for your help!
Re: can you bind an dropdownlist to a constant array?
SelectedIndex would be -1.
The ArrayList should work just fine.
Re: can you bind an dropdownlist to a constant array?
so will the value be the same as the text field? thats my main question. SOrry if I confused you.
Thanks for the replies!
Re: can you bind an dropdownlist to a constant array?
Re: can you bind an dropdownlist to a constant array?
GREAT!
Thank you, I'll test and RESOLVE this post.
You've been a great help!