S
Steven K
Hello,
I am creating the following ArrayList to bind to a DropDownList
(ddlYearBox).
ctrFor = 0
Dim arrFor as ArrayList = new ArrayList()
For ctrFor = 2002 To 2020
arrFor.Add (ctrFor)
Next
ddlYearBox.DataSource = arrFor
ddlYearBox.DataBind
The text and values are equal to ctrFor, but can you add the "Selected"
value using an ArrayList?
I am creating the following ArrayList to bind to a DropDownList
(ddlYearBox).
ctrFor = 0
Dim arrFor as ArrayList = new ArrayList()
For ctrFor = 2002 To 2020
arrFor.Add (ctrFor)
Next
ddlYearBox.DataSource = arrFor
ddlYearBox.DataBind
The text and values are equal to ctrFor, but can you add the "Selected"
value using an ArrayList?