G
Guest
I have the following code:
Dim dv As New DataView(ds.Tables(1), "AnswerSetID = " & drQue _
("AnswerSetID"), "AnswerID",
DataViewRowState.OriginalRows)
sel.DataTextField = "AnswerText"
sel.DataValueField = "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.Tables(1), "AnswerSetID = " & drQue _
("AnswerSetID"), "AnswerID",
DataViewRowState.OriginalRows)
sel.DataTextField = "AnswerText"
sel.DataValueField = "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?