asked on
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
Dim MyConnection As SqlConnection = New SqlConnection("server=....
Dim MyCommand As SqlDataAdapter = New SqlDataAdapter("select .............", MyConnection)
Dim DS As DataSet = New DataSet()
MyCommand.Fill(DS, "dsListBox")
MyListBox.DataSource = DS.Tables("dsListBox").Def
MyListBox.DataValueField = "id"
MyListBox.DataTextField = "onefield"
MyListBox.DataBind()