none
get the access to a class implementing a web - part

    问题

  •  thisWeb = SPContext.Current.Site.RootWeb;  Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager webPartManager = thisWeb.GetLimitedWebPartManager("page.aspx", PersonalizationScope.Shared);   WebPart webpart1=null; foreach (WebPart p in webPartManager.WebParts) 

              {  if (p.DisplayTitle.Equals("my panel")) 

               { 

    webpart1 = p;        break;  }   }

    There is an instance a pps web-part (webpart1) type  Microsoft.PerformancePoint.Scorecards.WebControls.ScorecardWebPart.

    I need to change a webpart1.

    How to get the access to a class implementing a web - part?



    MS

    2012年6月28日 6:45

全部回复