Results 1 to 2 of 2

Thread: DropDownList

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Posts
    108

    DropDownList

    VB.Net, Webapp - Does anybody know how to add data to a DropDownList?

    Equivalent to VB6: Combo1.AddItem "Hello There"

    Thanks

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    If you are binding then you can do:
    VB Code:
    1. DropDown1.DataSource() = xxxx
    2. DropDown1.DataBind()

    Or if you want to add individual items I think you can do (at least in winforms you can):
    VB Code:
    1. DropDown.Items.Add(xxxx)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width