Mobile Selection List and Databinding

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
Oberon,

I have those problems, I try to bring them down to the point that it shows
the easy wayl

Dim dv As New DataView(ds.Tables(1))
sel.DataTextField = "AnswerText"
sel.DataValueField = "AnswerID"
sel.DataSource = dv
sel.Databind

In this way I can than better oversee my problem.

I hope this helps

cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top