Hi friends i am trying to bring a data from the field in an checkboxlist. I have successfully done this. Now i am not able to get the values of selected items...........plz help me
i am using following code to bind checkboxlist with my database

Public Sub getchkbox()
        Dim myConnection As OleDbConnection
        Dim strSQL As String
        Dim myadpt As OleDbDataAdapter
        'Dim Dset As New DataSet
        Dim datatab As New DataTable

        myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" & Server.MapPath("App_Data\Domain_Management1.mdb") & "';Persist Security Info=True")
        strSQL = "select [PFirstName]from Partyinfo"
        'Dim strConString As String
        'strConString = System.Configuration.ConfigurationManager.AppSettings("Admin_Password")
        'myConnection = New OleDbConnection(strConString)
        myadpt = New OleDbDataAdapter(strSQL, myConnection)
        SelecteduserCheckBoxList.DataTextField = "PFirstName"
        SelecteduserCheckBoxList.DataValueField = "PFirstName"
        SelecteduserCheckBoxList.DataSource = datatab
End Sub

you have to create a foreach loop like this

foreach(ListItem li in SelecteduserCheckBoxList.Items)
        String itemSelect = li.Text;