Re: Task Aggregation Web Part

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: tedteng (anonymous_at_discussions.microsoft.com)
Date: 04/01/04


Date: Thu, 1 Apr 2004 06:21:11 -0800

assuming u have know how to creat a web part using visvual stidio .net and how to deploy a web part.

SPSite site = SPControl.GetContextSite(Context);
SPWebCollection allSites = site.AllWebs;

foreach (SPWeb subSite in allSites)
{
    SPListCollection allSiteLists = subSite.Lists;

    foreach (SPList subSiteList in allSiteLists)
    {
        if (subSiteList.BasType=107) //107 represents the base type as the Task template.
          {store the listid;}
    }
}

......

br

ted

     
     ----- Christopher Pragash wrote: -----
     
     ted,
     
     Thanks for the response. Could you please guide me a little from the Coding
     prespective?
     
     Thanks,
     Chris
     
     "tedteng" <anonymous@discussions.microsoft.com> wrote in message
     news:EE7737BD-28D6-4AEE-8436-3BCAF37B9F50@microsoft.com...
> u need to invent the web aprt. :) some coidng work to lead u there.
>> br
>> ted
>> ----- Christopher Pragash wrote: -----
>> Hello All,
>>> Is it possible to create a "Web Part" that will aggregate all the
     "tasks"
> from all team sites and meeting workspaces for a given user and let
     them
> view them on their personal portal page. If there are any
     alternatives to
> this, could anybody please let me know?
>> Thanks,
> Chris
>>>