i want to have a list box with three rows,
i want these rows to be bound to a three fields of one table
i dont think my list is databound at all
what am i missing here
thanks
VB Code:
daincMsg3.SelectCommand = New SqlCommand("SELECT * from tb_comp_detail WHERE (c_companycode = '" & lblUser.Text & "')", oSQLConn) daincMsg3.Fill(dsIncMsg3) lstMessage.Items.Add(New ListItem("Default", "c_msg_default")) lstMessage.Items.Add(New ListItem("Message1", "c_msg_custom1")) lstMessage.Items.Add(New ListItem("Message2", "c_msg_custom2")) lstMessage.DataBind() oSQLConn.Close()




Reply With Quote