Binding dropdownlist to multi-dimension array

Discussion in 'ASP .Net Web Controls' started by pc, Mar 9, 2005.

  1. pc

    pc Guest

    I would like to bind a dropdownlist control to a multi dimensional array and
    wondered if it is possible and where I can get some samples.

    My want to be able to have an array which contains the months January to
    December as the Text and the numbers 1 to 12 as the value:

    <asp: option value="1">January</option>
    <asp: option value="2">February</option>

    etc.

    I know that I can use a dataset with two columns to bind the control, but in
    this case I am using an array.

    Thanks,
     
    pc, Mar 9, 2005
    #1
    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. Adam Hartshorne

    Multi-Dimension Array Question

    Adam Hartshorne, Jun 8, 2005, in forum: C++
    Replies:
    6
    Views:
    2,156
  2. Makiyo
    Replies:
    3
    Views:
    543
    Richard Heathfield
    Feb 22, 2004
  3. Eric Laberge

    Multi-dimension array assignments

    Eric Laberge, Aug 22, 2005, in forum: C Programming
    Replies:
    3
    Views:
    475
    Dave Thompson
    Aug 27, 2005
  4. Replies:
    11
    Views:
    534
    Alexei A. Frounze
    Sep 29, 2005
  5. Luuk
    Replies:
    15
    Views:
    863
    Nobody
    Feb 11, 2010
Loading...

Share This Page