Louis Yeung

Hi,

I just started programming with MOSS OM. I have a document in the "Documents" doclib and I used sample code to read this file back out. It should take 2 seconds, but...

SPSite site = new SPSite("http://rooturl");

SPWeb web = site.OpenWeb();

SPList list = web.Lists["Documents"];

list.items.count=0.

I do not see the file in "Document" DocLib. The same user account can access this doclib via browser. It must be something simple. Thanks in advance.

..Louis



Re: SharePoint - Development and Programming Cannot see item in Documents

Stefan Keir Gordon

First make sure you have the correct document library.

Its convenient to debug and quick-watch the web.lists collection, to see whats available.