M
martin
Hi,
I would appreciate knowing the best way to store a two dimensional array,
and the bind that array to a dropdownlist.
The original array is in the form
integer, string
and the list will look like this
1,"sdfsdf"
2,"dsfsdf"
3,"gfhfghgfhfg"
The integer will eventually bind to the datavalue field of the dropdown.
The string will eventually bind to the dataText field of the dropdown.
I know I could bing directly to a dataset although I have three instance of
the same dropdown on the page.
so I figured fill an array once from a database and the populating the three
dropdowns from an array, is better then going to the db 3 times for the same
information.
can anybody please point me in the correct direction.
cheers
martin.
I would appreciate knowing the best way to store a two dimensional array,
and the bind that array to a dropdownlist.
The original array is in the form
integer, string
and the list will look like this
1,"sdfsdf"
2,"dsfsdf"
3,"gfhfghgfhfg"
The integer will eventually bind to the datavalue field of the dropdown.
The string will eventually bind to the dataText field of the dropdown.
I know I could bing directly to a dataset although I have three instance of
the same dropdown on the page.
so I figured fill an array once from a database and the populating the three
dropdowns from an array, is better then going to the db 3 times for the same
information.
can anybody please point me in the correct direction.
cheers
martin.