S
sweetpotatop
Hi,
I am try to populate a number of dropdownlist with the same item,
for i = 1 to 5
dd = me.controls("dd" + Cstr(i))
itm = new listiem
itm.text ="abc"
itm.value ="aaa"
dd.add(itm)
next i
But I am getting the following error
"Conversion from string "dd1" to type 'Integer' is not valid"
when it hits this line.
dd = me.controls("dd" + Cstr(i))
Please help. I just wonder how I can refer to a control to a page
dynamically
Thanks in advance.
I am try to populate a number of dropdownlist with the same item,
for i = 1 to 5
dd = me.controls("dd" + Cstr(i))
itm = new listiem
itm.text ="abc"
itm.value ="aaa"
dd.add(itm)
next i
But I am getting the following error
"Conversion from string "dd1" to type 'Integer' is not valid"
when it hits this line.
dd = me.controls("dd" + Cstr(i))
Please help. I just wonder how I can refer to a control to a page
dynamically
Thanks in advance.