Mobile Selection List and Databinding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oberon

    #1

    Mobile Selection List and Databinding

    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?
  • Cor Ligthert [MVP]

    #2
    Re: Mobile Selection List and Databinding

    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.Tab les(1))
    sel.DataTextFie ld = "AnswerText "
    sel.DataValueFi eld = "AnswerID"
    sel.DataSource = dv
    sel.Databind

    In this way I can than better oversee my problem.

    I hope this helps

    cor


    Comment

    Working...