Tagged Questions
3
votes
1answer
148 views
Disposing of SPWeb object query
I'm trying to understanding the object clean up process.
using (SPSite siteCollection = new SPSite(siteUrl))
{
SPWeb site = siteCollection.RootWeb;
foreach (SPList list in site.Lists)
{
if ...
1
vote
0answers
243 views
SPSite.Usage.Storage And SPSite.StorageManagementInformation Are Returning Different Values
When every I use SPSite.Usage.Storage and I use SPSite.StorageManagementInformation with to retrieve all the documents for the Site Collection then I sum the sizes of all the documents then I get a ...
0
votes
1answer
102 views
How do I read pagecolumns from the current page
I know that I have to use
SPSite site = new SPSite("SPsite Path");
SPWeb web = site.OpenWeb();
SPList contacts = web.Lists["Listname"];
if I need to get content of a List, but how do I read data ...
0
votes
1answer
765 views
How to get a document library URL from an SPSite object?
I have some documents in a document library in SharePoint 2007. The URL is http://abcd:24931/docu/Forms/AllItems.aspx.
I need to display these documents in a data grid view of a Windows form ...