I have the following code:


Code:
            Dim st As String
            st = "SELECT ID FROM TABLE WHERE SECTION=1"
            Me.AccessDataSource1.SelectCommand = st
            Me.DataList1.DataBind()

Now , how do I get the value of a the field ID , do I get it from the accessdatasource1 ? or from datalist1 ?



I simply want to use IF statement before I bind the data to the Datalist1 depending on the ID