ListItem unavailable

I am not able to use the ListItem Class in my VB 2003. When I try to declare an instance of ListItem as follows, it is not recognized.

Dim objListItem As ListItem

Is there something I am missing




Answer this question

ListItem unavailable

  • Jose_Marcenaro

    You have reference to assembly with System.Web.dll and import System.Web.UI.WebControls namespace


  • csharpnewbie001

    Thanx a lot. I have added the reference and imports. Now its ok.

  • Michael-R

    Hi!

    Do you import namespace What is the error message


  • Rrstock

    Error message is: "Type ListItem is not defined". In any case, when I am declaring, ListItem does not appear as one of the types.

    I tried to import the namespace "system.web.ui..." but the 'ui' bit does not exist.



  • ListItem unavailable