/ Published in: C#

Stupidly simple, but I keep forgetting it.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private void PopulateLookupData() { Lookup.SuburbDataTable subs = DALLookup.GetSuburbs(); dropSuburb.DataSource = subs; dropSuburb.DataTextField = subs.SuburbColumn.ColumnName; dropSuburb.DataValueField = subs.SuburbIdColumn.ColumnName; dropSuburb.DataBind(); }
Comments
