Paul Andrew

Technical Product Manager for Office 365 at Microsoft

Browse by Tags

Tagged Content List
  • Blog Post: Module 6 - Code Snippets: Accessing External Data with Business Connectivity Services in SharePoint 2010

    The following code snippets are taken from a demonstration video included in Module 6 of the Getting Started Course for SharePoint 2010 Developers ( http://www.mssharepointdeveloper.com ) This first snippet defines a simple class that was used in the demo. This class is used to represent the Customer...
  • Blog Post: Module 9 - Code Snippets: Sandboxed Solutions for Web Parts in SharePoint 2010

    The following example shows code that attempts to run in a sandboxed solutuon. There are four buttons, each of which attempt a different type of action, as follows: - renderWebInfo_Click : This operation will be allowed to run in the sandbox. - renderWebInfoElevated_Click : This operation will not be...
  • Blog Post: Module 10 - Code Snippets: Creating Dialogs and Ribbon Controls for SharePoint 2010

    The following markup is a simple example of how to add a control to the Site Actions menu. This example adds a menu item that navigates the user directly to the Solutions Gallery, without requiring them to go to the Site Settings page first: <?xml version="1.0" encoding="utf-8"?> <Elements...
  • Blog Post: Module 7 - Code Snippets: Developing Business Processes with SharePoint 2010 Workflows

    The following code shows how to return data from a workflow initiation form to the workflow. Note: This code relies on there being an ASP.NET TextBox on the initiation form named MaxPrice. Note also that the code snippet that follows this one uses the data returned. namespace ApproveRejectProducts...
  • Blog Post: Module 8 - Code Snippets: Creating Silverlight User Interfaces for SharePoint 2010 Solutions

    The following code shows how to use the SharePoint client object model in a Silverlight application. The code performs the following actions in the Silverlight application: - Obtains a reference to the current SharePoint site in the application's APP.XAML file - Updates a progress bar and status label...
  • Blog Post: Module 5 - Code Snippets: Accessing SharePoint 2010 Data with Client-Side APIs

    The following code shows how to use the client object model from a console application. The code first of all lists the Web templates available for a specific Web, and then creates a new Web based on a specific template: ClientContext clientCtx = new ClientContext("http://intranet.contoso.com"); Site...
  • Blog Post: Module 4 - Code Snippets: Accessing SharePoint 2010 Data with Server-Side APIs

    The following code shows how to obtain a reference to a specific Web, then to a specific list, and then how to enumerate the fields in the list: SPSite thisSite = SPContext.Current.Site; using (SPWeb targetWeb = thisSite.AllWebs["Project Management"]) { SPList targetList = targetWeb.Lists["Announcements...
  • Blog Post: Module 2 - Code Snippets: What Developers Need to Know About SharePoint 2010

    The following code shows two event handlers: - The first one ( FieldAdded ) updates existing list items when a field is added to a list. - The second handler ( ListDeleting ) prevents the deletion of a list. namespace ProductMarketing.ProductTaskEvents { public class ProductTaskEvents : SPListEventReceiver...
  • Blog Post: Module 3 - Code Snippets: Building Blocks for Web Part Development in SharePoint 2010

    The following code shows how to use the ListViewByQuery control in a Web Part. Note: The code also includes a CAML query statement that is used by an SPQuery object to set the items to be displayed in the ListViewByQuery control. protected override void CreateChildControls() { SPWeb thisWeb = SPContext...
  • Blog Post: Module 1: Code Snippets: Getting Started: Building Web Parts in SharePoint 2010

    The following code shows how to modify the Text property of a label when a Visual Web Part loads. NOTE : This code assumes there is an ASP.NET Label control called message in the Visual Web Part using System; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;...
  • Blog Post: Microsoft SharePoint Developer Forum Challenge - Official Rules

    MICROSOFT SHAREPOINT DEVELOPER FORUM CHALLENGE OFFICIAL RULES PLEASE NOTE: It is your sole responsibility to review and understand your employer's policies regarding your eligibility to participate in trade promotions. If you are participating in violation of your employer's policies, you may be...
  • Blog Post: The Windows Workflow Foundation WebCasts

    Workflow WebCasts Coming Up MSDN Architecture Webcast: Windows Communication Foundation and Windows Workflow Foundation in Retail and Hospitality (Level 200) Monday, May 22, 2006 10:00am - 11:00am Presenter: Marc Mercuri Workflow, rules, and communications are both omnipresent and critical in...
  • Blog Post: .NET Developer Bloggers in New Zealand

    Borrowed from Tim Sneath a list of .NET Developers in New Zealand who have a blog. Feel free to add a comment to this page to get yourself on the list - it's a short list so far. Chris Auld - Regional .NET User Group Leader Kirk Jackson - Wellington .NET User Group Leader Peter Jones - Christchurch ...
  • Blog Post: Places to find .NET sample code

    When I'm looking for a sample of how to do something in .NET there are many places to look, I use this page as a starting point. All I need now is a decent search tool that searches all these sites in one go. The Original Framework Quickstart http://samples.gotdotnet.com/quickstart/ CodeProject - The...
  • Blog Post: Developer Support in New Zealand

    This is where I'm pasting various ways for developers in New Zealand to get help for their work. Support Centers on MSDN. MSDN Managed Newsgroups for MSDN Subscribers New Zealand .NET Mailing List . You have to subscribe to post here. Press F1 at PC World is an open forum for all things computers. Official...
Page 1 of 1 (15 items)