Hi all,
I have five dropdownlists on a form.
I would like create a loop so that I can reduce the code. Something like:
Dim DDList As DropDownList
For intCount = 1 To 5
With DDList(intCount)
.DataSource = objDS.Tables(1)
.DataTextField = ("myText"
.DataValueField = ("myValue"
.DataBind()
End With
Next
/Kent J.
I have five dropdownlists on a form.
I would like create a loop so that I can reduce the code. Something like:
Dim DDList As DropDownList
For intCount = 1 To 5
With DDList(intCount)
.DataSource = objDS.Tables(1)
.DataTextField = ("myText"
.DataValueField = ("myValue"
.DataBind()
End With
Next
/Kent J.