火曜日, 8月 03, 2010

The Road To SharePoint Web Parts

The Definitive Hello World Web Part Tutorial

Debugging Web Parts



The Road To SharePoint Web Parts

Creating A SharePoint Web Part Project

Programming With Your SharePoint Web Part

Debugging Your SharePoint Web Part

Microsoft Windows SharePoint Services の Web パーツをパッケージ化および配置する


Page Viwer Webpart - change settings programatically
In the 'webpart.cs' you can write :
// declaration of the PageViewerWebPart
protected Microsoft.SharePoint.WebPartPages.PageViewerWebPart cPreviewPageViewer = new PageViewerWebPart();

and in the RenderWebPart() method :

// link to the page you want / or use a string var of the url
string SiteUrl = ""
cPreviewPageViewer.ContentLink = SiteUrl;
// redim of the pageviewer
cPreviewPageViewer.Height = iFrameHeight.ToString();
// render
cPreviewPageViewer.RenderControl(output);

0 件のコメント: