databinding to dropdownlist tutorials?

  • Thread starter Thread starter darrel
  • Start date Start date
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
 
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
 
Back
Top