Current Area
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Current Area

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Kirk L
Guest





Posted: Wed Nov 02, 2005 9:51 pm    Post subject: Current Area Reply with quote

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
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB