DropDownList

Discussion in 'ASP .Net Datagrid Control' started by anonymous, Jun 22, 2004.

  1. anonymous

    anonymous Guest

    In a drop down list you can assing the value from
    recordset like this:
    country.DataTextField = "country"
    country.DataValueField = "Code"
    What if I need to assign more value to a DataValueField
    from a recordset. Something like this:
    country.DataTextField = "country"
    country.DataValueField(1) = "Code"
    country.DataValueField(2) = "Code1"
    How do I do this?
    anonymous, Jun 22, 2004
    #1
    1. Advertising

  2. Merge all values into one string and that parse it?

    Eliyahu

    "anonymous" <> wrote in message
    news:1fee301c4588f$11aaf280$...
    > In a drop down list you can assing the value from
    > recordset like this:
    > country.DataTextField = "country"
    > country.DataValueField = "Code"
    > What if I need to assign more value to a DataValueField
    > from a recordset. Something like this:
    > country.DataTextField = "country"
    > country.DataValueField(1) = "Code"
    > country.DataValueField(2) = "Code1"
    > How do I do this?
    >
    Eliyahu Goldin, Jun 23, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. mr2_93
    Replies:
    1
    Views:
    3,582
    mr2_93
    Oct 2, 2005
  2. tshad
    Replies:
    8
    Views:
    2,206
    tshad
    Oct 19, 2005
  3. =?Utf-8?B?SnVhbmpv?=

    GridView: Filtr DropDownList from another DropDownList

    =?Utf-8?B?SnVhbmpv?=, Dec 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,847
    =?Utf-8?B?SnVhbmpv?=
    Dec 23, 2005
  4. =?Utf-8?B?SnVhbmpv?=

    GridView: Filter DropDownList for another DropDownList

    =?Utf-8?B?SnVhbmpv?=, Dec 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    1,283
    =?Utf-8?B?SnVhbmpv?=
    Dec 29, 2005
  5. keithb
    Replies:
    1
    Views:
    11,914
    shauns1
    Nov 1, 2006
Loading...

Share This Page