asp.net DropDownList XML multiple datatextfield

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • urbn
    New Member
    • Jul 2008
    • 7

    asp.net DropDownList XML multiple datatextfield

    Is there a way to display several records in the datatextfield in a asp dropdownlist?

    I know the fix when populating the dropdownlist from a datagrid was to edit your SQL query but the values I am receiving are sent via an XML string.


    The idea would be to display a name, price, and date in the dropdown text.

    Currently I am getting the following error:
    DataBinding: 'System.Data.Da taRowView' does not contain a property with the name 'MonetaryValueS erviceType'

    While using UPSDropDown.Dat aTextField = "MonetaryVa lue" & "ServiceTyp e"

    Is there a work around to do this? The only other option is to use radio buttons (which are also a nightmare).

    Thanks!
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    There's probably a lot of ways to solve this but the first one that comes to my mind is to change the data source to contain a column with both of these values in this.

    You are somehow retrieving the data from the XML file.
    You are putting that into some control that you're using as the datasource for your DropDownList.

    When you populate this data source, create another column that contains both values.

    -Frinny

    Comment

    Working...