Tuesday, July 23, 2013

how to bind a list box in asp.net

to bind a listbox in asp.net

write the following code

lbxLeft.DataSource = SqlDS.Tables(0)
lbxLeft.DataTextField = "Id"
lbxLeft.DataValueField = "Id"
lbxLeft.DataBind()

No comments:

Post a Comment