|
-
Oct 18th, 2005, 05:37 PM
#1
Thread Starter
Fanatic Member
[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!
Last edited by drpcken; Oct 21st, 2005 at 05:57 PM.
-
Oct 19th, 2005, 12:29 PM
#2
Re: can you bind an dropdownlist to a constant array?
SelectedIndex would be -1.
The ArrayList should work just fine.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Oct 19th, 2005, 01:52 PM
#3
Thread Starter
Fanatic Member
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!
-
Oct 19th, 2005, 02:07 PM
#4
Re: can you bind an dropdownlist to a constant array?
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Oct 19th, 2005, 02:13 PM
#5
Thread Starter
Fanatic Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|