Code to populate combo

Discussion in 'ASP .Net' started by Mark Goldin, Aug 3, 2004.

  1. Mark Goldin

    Mark Goldin Guest

    Where in cs file do I put code to populate a combo box?
     
    Mark Goldin, Aug 3, 2004
    #1
    1. Advertising

  2. Mark Goldin

    Darren Clark Guest

    In the page Load event is one place...



    simple eg.



    private void Page_Load(object sender, System.EventArgs e)

    {

    this.Paid.DataSource = GetData();

    this.Paid.DataBind();

    }

    "Mark Goldin" <> wrote in message
    news:...
    > Where in cs file do I put code to populate a combo box?
    >
    >
     
    Darren Clark, Aug 3, 2004
    #2
    1. Advertising

  3. Inside a class definition.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Big things are made up
    of lots of little things.

    "Mark Goldin" <> wrote in message
    news:...
    > Where in cs file do I put code to populate a combo box?
    >
    >
     
    Kevin Spencer, Aug 3, 2004
    #3
    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. Joyce
    Replies:
    0
    Views:
    560
    Joyce
    Mar 1, 2005
  2. Adrian
    Replies:
    1
    Views:
    234
    Bullschmidt
    Feb 18, 2004
  3. Lukelrc

    Populate a combo with an array

    Lukelrc, May 19, 2004, in forum: ASP General
    Replies:
    10
    Views:
    206
    Roland Hall
    May 22, 2004
  4. dthmtlgod

    Fill Combo Box based on another Combo Box

    dthmtlgod, Nov 16, 2005, in forum: ASP General
    Replies:
    1
    Views:
    604
    Bob Barrows [MVP]
    Nov 16, 2005
  5. SM
    Replies:
    2
    Views:
    381
Loading...

Share This Page