Results 1 to 2 of 2

Thread: drop down list

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    14

    drop down list

    Hi all,

    how to populate a drop down list control (.aspx page)
    with a database field.

    pls help urgent.

    rgds,
    edna

  2. #2
    New Member
    Join Date
    Aug 2002
    Location
    England
    Posts
    9
    Protected WithEvents MyDropDownList As System.Web.UI.WebControls.DropDownList
    Protected WithEvents MyDataSet As MyDataSet
    Dim MyComponant As Component = New Component()


    MyComponant.MyDataAdapter.Fill(MyDataSet)
    MyDropDownList.DataBind()

    ps. This is assuming you have created;
    a componant within you application,
    a dataadapter within your componant
    and a dataset that relates to your dataadapter

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