databinding to dropdownlist tutorials?

D

darrel

Can anyone recommend a vb.net tutorial for databinding data from a table to
a dropdownlist?

I'd like to have my dropdoown list populated from two database columns (one
for text and one for value). I'm not having much luck via google/teoma.

-Darrel
 
D

darrel

Can anyone recommend a vb.net tutorial for databinding data from a table
to
a dropdownlist?

Nevermind. That was easier than I thought! (hence no need for tutorials!)

DropDownListNavigation.DataSource = DS
DropDownListNavigation.DataTextField = "PageName"
DropDownListNavigation.DataValueField = "ContentID"
DropDownListNavigation.DataBind()

-Darrel
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top