Kirk L
Guest
|
Posted:
Wed Nov 02, 2005 9:51 pm Post subject:
Current Area |
|
|
I am using the AreaService within Microsoft.SharePoint.Portal.dll to
get area information within a web part. I can easily get area
information for the home (top level) area and its sub areas with the
following code:
AreaService areaSvc = new AreaService();
Guid homeGuid = areaSvc.GetHomeAreaID();
Guid[] subGuids = areaSvc.GetSubAreas(homeGuid);
ArrayList areaDataList = new ArrayList();
areaDataList.Add(areaSvc.GetAreaData(homeGuid));
foreach (Guid subGuid in subGuids)
{
AreaData areaData = areaSvc.GetAreaData(subGuid);
...
}
Does anyone know how to figure out how to get the "current" area based
on the context of the current page? This assumes that the current page
has some area context, of course.
Thanks,
Kirk |
|