How to use HTTPContext for SPList

Posted by Azra on Stack Overflow See other posts from Stack Overflow or by Azra
Published on 2009-07-15T09:59:42Z Indexed on 2010/04/20 6:03 UTC
Read the original article Hit count: 634

I have the following requirement.

public void GetSubSite(SPWeb site)
{
    site.AllowUnsafeUpdates = true;

    SPList destinationList = site.Lists[TASKS];
    SPWebCollection subSitesCollection = site.Webs;
    foreach (SPWeb subSite in subSitesCollection)
    {
        //.....

Now I want to display the destinationList as a web part, and every time the user loads the page, it should be populated freshly.

How can i achieve that with HTTPContext?

© Stack Overflow or respective owner

Related posts about httpcontext

Related posts about sharepoint