Click here to Skip to main content
15,896,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am running into the above error and i am struggling to understand why this is coming up as i know this code was working previously. I am sure i haven't changed anything in this code but i was hoping someone could advise me where i am going wrong.

VB
Public Sub systemsList()

    Dim dt1 As New DataTable

    dt1 = GetUserName.sysTableData(Session("User")).ToString

    For x = 0 To dt1.Rows.Count - 1
        systemL.Items.Add(dt1(x).ToString)
    Next

    If Page.IsPostBack = False Then

        Dim testData As New DataSet
        testData = sysTableData()

        systemL.DataSource = testData
        systemL.DataValueField = "description"
        systemL.DataTextField = "description"
        systemL.DataBind()

    End If

End Sub
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900