I have the following code:
Dim dv As New DataView(ds.Tab les(1), "AnswerSetI D = " & drQue _
("AnswerSetID") , "AnswerID",
DataViewRowStat e.OriginalRows)
sel.DataTextFie ld = "AnswerText "
sel.DataValueFi eld = "AnswerID"
sel.DataSource = dv
When this code renders the html. The DataValueField is ignored. Instead it
populates the value for the options with 0,1,2... and so on.
What am i missing to get the data value to be the contents of the
DataValueField?
Dim dv As New DataView(ds.Tab les(1), "AnswerSetI D = " & drQue _
("AnswerSetID") , "AnswerID",
DataViewRowStat e.OriginalRows)
sel.DataTextFie ld = "AnswerText "
sel.DataValueFi eld = "AnswerID"
sel.DataSource = dv
When this code renders the html. The DataValueField is ignored. Instead it
populates the value for the options with 0,1,2... and so on.
What am i missing to get the data value to be the contents of the
DataValueField?
Comment