public class OwnerPart : WebPart
{
protected override void CreateChildControls()
{
SPSite site = Microsoft.SharePoint.WebControls.SPControl.GetContextSite(HttpContext.Current);
string owner = site.Owner.Name;
Controls.Add(new LiteralControl("Owner: " + owner));
}
}
-Brian Grabowski
Subscribe to:
Post Comments (Atom)
2 comments:
That's some visionary stuff right there.
kul post
Post a Comment