mylifeinaminute.com

Office

Locating all of the Web Parts on the Current Page (C#)

by liquidpooled on Nov.13, 2008, under .NET, MSDN, Microsoft, Office, Sharepoint Server, TechNet, Visual Studio 2005, Visual Studio 2008, Windows SharePoint Services

The following snippet allows for locating all of the web parts on a given web part page (the sample is targeted at web parts of the type Microsoft.SharePoint.WebPartPages.ListViewWebPart)


string webUrl = SPContext.Current.Web.Url;

using (SPSite site = new SPSite(webUrl))
{
     using (SPWeb web = site.OpenWeb())
     {
          SPLimitedWebPartManager manager = web.GetLimitedWebPartManager(this.Parent.Page.Request.Url.ToString(), System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);

          SPLimitedWebPartCollection webPartColl = manager.WebParts;

          for (int i = 0; i < webPartColl.Count; i++)
          {
               if (webPartColl[i].GetType() == typeof(Microsoft.SharePoint.WebPartPages.ListViewWebPart))
               {
                    // do stuff
               }
          }
     }
}
Leave a Comment more...

So you want to learn about SharePoint?

by liquidpooled on Nov.10, 2008, under .NET, MSDN, Microsoft, Office, Sharepoint Server, Visual Studio 2005, Visual Studio 2008, Windows SharePoint Services

If you’re looking for a primer in programming with SharePoint, the following are a few good resources provided by Microsoft:

  • MSDN Ramp Up
    • From the site: Ramp Up is a free, online, community-based learning program, with a number of different tracks that will help you build your portfolio of professional development skills. Ramp Up has a solid foundation of premium technical content from subject-matter gurus, and provides easy-to-access content in a variety of forms that guide you in learning the important skills
  • SharePoint Developer
    • A primer series on developing with SharePoint from Microsoft.
Leave a Comment more...

Best Practices for Enterprise User Scalability in SharePoint

by liquidpooled on Nov.04, 2008, under Microsoft, Office, Sharepoint Server, Windows SharePoint Services

Joel Oleson is at it again, this time with an excellent primer on user scalability in a SharePoint environment.  The article makes for an excellent primer on how to manage users in SharePoint environments in a better manner.

Leave a Comment more...

When Timer jobs go bad…

by liquidpooled on Nov.04, 2008, under Microsoft, Office, Sharepoint Server, TechNet, Windows SharePoint Services

Occasionally, for no good reason, administrative timer jobs can go bad, leaving them in a state of limbo.  For instance, have you ever deployed a solution package and the status remains at “Deploying”?  When behaviors like this begin to appear, the timer jobs in question can still be forced through by utilizing STSADM.

The execadmsvcjobs switch will force any pending jobs to execute immediately (such as a deployment gone bad). Execute the command on each server in your SharePoint farm, and the timer job should clear itself.


stsadm -o execadmsvcjobs
Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...