Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Display data with web developer

i wanna to display out the data that i retrieve in a label. i have try many ways but din work out. what code should i focus on to make it works? thanks

code : (the ? part is the part that i confuse with)

Protected Sub reslist_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Dim DataSource1 As New SqlDataSource()
DataSource1.ConnectionString = ConfigurationManager.ConnectionStrings("ConnectionString").ToString()

DataSource1.SelectCommandType = SqlDataSourceCommandType.Text
DataSource1.SelectCommand = "select today_menu, price, date FROM menu VALUES (@menu, @price, @date)"

If reslist.SelectedValue = ListItem.FromString("sakura").ToString Then

menulabel.Text = ?

End If
[765 byte] By [Zouve] at [2007-11-11 9:53:39]