Thanks, however that didn't quite work for me.
I actually was able to figure it out using the VB code example on the
Data Binding in Templates section you referenced.
I handled all the databinding for the textbox and checkbox in the code behind like the following:
Dim
cmdz
As
SqlCommand =
New
SqlCommand(
"eProctor.usp_MultiFunction"
, cnProData)
cmdz.Parameters.AddWithValue(
"@Anchor"
, 20)
cmdz.Parameters.AddWithValue(
"@RequisitionID"
, ReqID)
cmdz.CommandType = CommandType.StoredProcedure
Dim
daz
As
New
SqlDataAdapter(selectCommand:=cmdz)
daz.Fill(ds,
"HardCopyLocations"
)
ddlHardCopies.DataSource = ds.Tables(
"HardCopyLocations"
)
ddlHardCopies.DataTextField =
"LocationName"
ddlHardCopies.DataValueField =
"LocationID"
ddlHardCopies.DataBind()
Dim
i
As
Integer
= 0
While
i < ddlHardCopies.Items.Count
For
Each
item
In
ddlHardCopies.Items
Dim
vartxt
As
TextBox =
DirectCast
(item.FindControl(
"txtHardCopyQuantity"
), TextBox)
Dim
varchk
As
CheckBox =
DirectCast
(item.findcontrol(
"chkHardCopy"
), CheckBox)
vartxt.Text = ds.Tables(
"HardCopyLocations"
).Rows(i).Item(
"Quantity"
).ToString
varchk.Checked =
CType
(ds.Tables(
"HardCopyLocations"
).Rows(i).Item(
"Value"
).ToString,
Byte
)
i = i + 1
Next
End
While
Thanks again for pointing me in the right direction!
Mike-