Archive

Archive for the ‘Visual Studio 2010’ Category

SharePoint 2010 Certification LiveMeeting Events in May

May is going to be a busy month for learning SharePoint 2010. Several events are scheduled surrounding certification and preparing professionals to get certified.

Here are some LiveMeeting sessions in May that will assist you in your efforts to get certified.

Certification Preparation session: SharePoint Server 2010 TS and Pro Exams: 70-667 and 70-668 by Telmo Sampaio

Certification Preparation session: SharePoint Server 2010 Developer: Exam 70-573 by Christopher Harrison

Career Specialization for Network Administrators: Skills necessary to become a SharePoint Administrator by Russ Kaufmann

 

Live Meetings: Exam Crams for Windows Server, Exchange, SharePoint and more!

-Microsoft Learning Born to Learn Blog

March 16th, 2010 Neal McFee No comments

Demo of adding SharePoint 2010 Project Items to a project in Visual Studio 2010

This demo video includes a walkthrough of creating a visual webpart using Visual Studio 2010.

Deploying the webpart using the Visual Studio 2010 IDE is also included.

Using Visual Studio 2010 you have project templates.
These templates are known as SharePoint Project Items (SPI).

If you are used to using the VSeWSS tools with Visual Studio 2005 – 2008 then you are already used to the idea of creating projects using templates.

The templates that are included in Visual Studio 2010 include:

Application Page
Business Data Connectivity Model
Content Type
Empty Element
Event Receiver
List Definition
List Definition from Content type
List Instance
Module
Sequential Workflow
State Machine Workflow
User Control
Visual Web Part
Web Part
Workflow Association Form
Workflow Initiation Form

 

Get the Flash Player to see this content.

 

Demo of adding SharePoint 2010 Project items

March 14th, 2010 Neal McFee No comments

Windows PowerShell compiled Help for SharePoint Server 2010

Here is the Microsoft Download center URL to a series of .chm files that contain the overview, use, and syntax for using PowerShell when administrating SharePoint Server 2010

Microsoft Download Center


Files in This Download

The links in this section correspond to separate files available in this download. Download the files most appropriate for you.
 
File Name:File Size 

AccessServicesCmdlets.chm

51 KB

Download

ECMCmdlets.chm

60 KB

Download

ExcelServicesApplicationCmdlets.chm

107 KB

Download

InfoPathCmdlets.chm

85 KB

Download

MetadataCmdlets.chm

63 KB

Download

PerformancePointCmdlets.chm

60 KB

Download

SearchCmdlets.chm

278 KB

Download

SecureStoreCmdlets.chm

70 KB

Download

SharePointFoundationSearchCmdlets.chm

44 KB

Download

SharePointProductsCmdlets.chm

459 KB

Download

StateServiceCmdlets.chm

71 KB

Download

UserProfileCmdlets.chm

60 KB

Download

VisioServicesCmdlets.chm

59 KB

Download

WebAnalyticsCmdlets.chm

46 KB

Download

WordServicesCmdlets.chm

46 KB

Download
February 21st, 2010 Neal McFee 1 comment

SharePoint Developer credit class at DePaul University in Chicago

This looks like a great option to learn SharePoint 2007 and SharePoint 2010 development while earning college credit at a well known University in Chicago.

It is rare to see universities offering classes on very current technologies not to mention offering college credit for a very current version and the future version of SharePoint.

http://www.cdm.depaul.edu/ipd/Programs/Pages/SharePointDeveloperProgram.aspx

Overview
A 10-week comprehensive program covering Microsoft SharePoint development. The program exposes students to SharePoint architecture and the use of SharePoint as a development platform for building customized solutions, focusing on SharePoint as a collaboration framework and content management system.

The program will begin with an overview of the various product editions and their features as well as a refresher of the .NET 2.0+ fundamentals that SharePoint is built upon. The program will then provide in-depth coverage of the core development constructs of SharePoint to enable the student to understand how the pieces fit together in common use cases. Finally, the program will expose the student to current development trends and how they will carry over into the next release of the product, SharePoint 2010.

Admission Requirements
Applicants must have a solid programming background (at least two years of professional experience is preferred), including some experience building dynamic websites using ASP.NET and C#, and knowledge of basic HTML/CSS.

Dates & Location: Spring Quarter 2010
Application deadline: Mar. 12, 2010
Tuition deadline: Mar. 18, 2010
Classes begin: Mar. 30, 2010 
Classes end: Jun. 3, 2010
Classes meet on Tuesday and Thursday evenings (5:45pm-9pm) at DePaul University’s Loop Campus at 243 South Wabash Avenue, Chicago, IL.

Online Section:
Students may elect to register for an online section of the course. For more information about the online section, click here.
DePaul University reserves the right to cancel any program prior to that program’s first class meeting.

Course Credit

The SharePoint Developer Program is an accredited course of DePaul University, which follows the quarter system (as opposed to the semester system).
Course #: IPD 358
Credit hours: 10 undergraduate

For a complete program description, download the program brochure.

February 20th, 2010 Neal McFee No comments

United States Olympic Committee Media Site Shines With Microsoft SharePoint Server 2010

Everything the U.S. Olympic press corps needs to report from the Games is now in one place, with the ability to share, e-mail, print and download information from one simple Web site.

http://www.microsoft.com/Presspass/Features/2010/jan10/01-27USOCpresssite.mspx

February 12th, 2010 Neal McFee No comments

SharePoint Server 2010 Information Worker Demonstration Virtual Machine (Beta)

Here is another development VHD that contains the following products:

Microsoft Download Center

  1. Windows Server 2008 SP2 Standard Edition x64, running as an Active Directory Domain Controller for the “CONTOSO.COM” domain with DNS and WINS
  2. Microsoft SQL Server 2008 SP1 + CU2 Enterprise Edition with Analysis, Notification, and Reporting Services
  3. Microsoft Office Communication Server 2007 R2
  4. Visual Studio 2010 Beta 2 Ultimate Edition
  5. Microsoft SharePoint Server 2010 Enterprise Edition Beta 2
  6. Microsoft Office Web Applications Beta 2
  7. FAST Search for SharePoint 2010 Beta 2
  8. Microsoft Project Server 2010 Beta 2
  9. Microsoft Office 2010 Beta 2
  10.   Microsoft Office Communicator 2007 R2

Keep in mind that many of the software included on the VHD require activation after 30 days.

MSDN, TechNet, or Partner Action Pack license keys will active software that is not Beta.

If you wish to activate Beta software check the Microsoft.com sites for each respective product and retrieve the key there.

February 11th, 2010 Neal McFee No comments

Code samples from: – SharePoint Conference 2009, "Advanced Development for Silverlight 3 in SharePoint 2010"

Code samples from:
- SharePoint Conference 2009, "Advanced Development for Silverlight 3 in SharePoint 2010"
- MSDN Webcast Feb 2010, "Developing Rich Solutions in Silverlight for SharePoint 2010"
- ReadMe.docx

This release includes a recording of the MSDN Webcast,

“Developing Rich Solutions in Silverlight for SharePoint 2010”

along with the code shown in the webcast. These are updates of the same solutions shown at SharePoint Conference 2009 in the talk, “Advanced Development for Silverlight 3 in SharePoint 2010”; this Code Gallery release will serve to provide the sample code from both talks.

The code samples are as follows:

SharePoint and Silverlight from Scratch

This walkthrough was presented only in the webcast to show how to get stared developing in Silverlight for SharePoint 2010. The sample includes only the snippets (in Visual Studio snippet format); it will be necessary to watch the webcast to see how to use them.

Picture View Web Part

This is a Silverlight web part that shows a slide show of images stored in a SharePoint picture library. This demonstrates how to use the HTML bridge to reduce the number of round-trips to the server. In this case, the server side web part passes the URL’s of the pictures to Silverlight in a hidden form field, removing the need for the Silverlight application to query the server for the list of pictures.

Paged List View Web Part

This is a Silverlight web part that shows a grid of data from a SharePoint list. It allows paging, sorting and filtering, and only loads an n-row page at a time to allow viewing a large data set without downloading the whole thing to Silverlight. In addition to loading the first “page” of data in a hidden field (like the Picture View web part) , it obtains additional content using ADO.NET Data Services and SharePoint’s new RESTful interface.
NOTE this release does not include the target list, and the sample will not run without it. A future release may include a matching list definition with sample data.

Video Field Control

This adds a Video field to SharePoint, using Silverlight applications to view and select the video. The actual field simply stores the URL of the video. The Silverlight display application is very simple, and just plays the video based on this URL. The selector application is more interesting as it uses the client object model to provide a simple browsing and preview feature in which the user can select a site, library and video to be shown.

Connected Silverlight Web Parts

This sample includes a pair of web parts – a source and target. When connected via the web browser, text entered into the source web part will appear on all targets as it is typed. This shows how to use SharePoint’s web part connection mechanism – which runs on the server side – as a broker to connect the Silverlight applications. The Silverlight applications communicate using the new Silverlight 3.0 Local Messaging API.

 

Extracted from

http://code.msdn.microsoft.com/SP2010Silverlight

February 11th, 2010 Neal McFee No comments

Minimal master page file for SharePoint Foundation 2010

This master page is meant as a starting point for creating master pages for Microsoft SharePoint Foundation 2010. Most of the controls on the page are hidden. You can move these controls into other locations based on your design. You can find the default controls in the v4.master page that ships with the product.

 

Example starter.master

February 11th, 2010 Neal McFee No comments

SharePoint 2010 Samples for Visual Studio 2010 Release Candidate

Visual Studio 2010 Release Candidate samples demonstrate SharePoint 2010 development projects, tools, and techniques. Each sample is available in both Visual Basic and C#.

SharePoint samples

SharePoint 2010 Sequential Workflow
Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.

Business Data Connectivity Samples
Shows how to use custom Business Data Catalog types in a SharePoint project.
Visual Web Part
Shows how to create an ASP.NET Web part that can be used in SharePoint.

List with Event Receiver
Demonstrates how to use a list definition, list instance, content type, event receiver, visual Web part, LINQ to SharePoint, and Package Designer to create an equipment lending library based on SharePoint 2010.

Custom Action Project Item
Demonstrates how to add a new SharePoint Project Extension using the SharePoint project extensibility APIs that are part of Visual Studio 2010.

Visual Web Part
Shows how to create an ASP.NET Web part that can be used in SharePoint.

February 11th, 2010 Neal McFee No comments

Walkthrough 6: Extending the SharePoint 2010 UI with Silverlight

Exercise Duration

: 20 minutes

Exercise Overview

This example shows how to create a Silverlight Application that uses the SharePoint Client Object model to render SharePoint list data. It also shows how to host that Silverlight Application in the Silverlight web part on SharePoint.

Feature Overview

The Silverlight Web Part allows developers and users to easily add Silverlight applications (*.XAP) to SharePoint sites. Client Object Model can be used in Silverlight to access SharePoint programmatically.

Task 1: Create a Silverlight Application for the SharePoint Client Object Model.

1.

Open Visual Studio 2010 from the Start | Programs | Visual Studio 2010 menu.

2.

Create a new project by using File | New Project.

3.

Pick the Visual C# | Silverlight templates.

4. From the Visual C# | Silverlight templates select the Silverlight Application

template.

5. Use SPSilverlightExample as the name.

6. Set the location to be C:\SPHOLs

.

7. Press OK to create the project.

image

8.

When the New Silverlight Application dialog appears, accept all the defaults by pressing OK.

image

9.

Right-click on the SPSilverlightExample project in the Solution Explorer and select Add Reference.

10.

Go to the Browse tab in the Add Reference dialog, and add a reference to the two assemblies from the specified location:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin\

The file names are: Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.Runtime.dll.

image

Task 2: Write code to access and render SharePoint List Data

1.

Open the Toolbox and expand Silverlight Controls.

2.

Drag a DataGrid control onto the Silverlight Designer.

image

3.

In the Solution Explorer right-click on Page.xaml and select View Code.

4.

Inside the Page.xaml.cs add the following using statement at the top of the file:

using

Microsoft.SharePoint.Client;

5. Add the following class before the Page class:

public class Project

{

   public String Title { get; set; }

   public DateTime DueDate { get; set; }

   public String Description { get; set; }

}

6. Add the following member to the Page class itself:

ListItemCollection _projectItems;

7. Add the following code to the Page Constructor

var context = new

ClientContext(ApplicationContext.Current.Url);

context.Load(context.Web);

var projects = context.Web.Lists.GetByTitle(“Projects”

);

context.Load(Projects);

var query = new

Microsoft.SharePoint.Client.CamlQuery();

var strQuery = “<View><Query><Where><Gt>”

+

   “<FieldRef Name=’Due_x0020_Date’ />”

+

   “<Value Type=’DateTime’>2008-01-1T00:00:00Z</Value>”

+

   “</Gt></Where></Query><ViewFields>”

+

   “<FieldRef Name=\”Title\” /><FieldRef Name=\”Description\” />”

+

  “<FieldRef Name=\”Due_x0020_Date\” />”

+

   “</ViewFields></View>”

;

query.ViewXml =

strQuery;

_projectItems = projects.

GetItems(query);

context.

Load(_projectItems);

context.ExecuteQueryAsync(OnRequestSucceeded, null

);

8.

Add the following code inside of the Page class after the constructor:

private void

OnRequestSucceeded(Object sender, ClientRequestSucceededEventArgs args)

{

   // this is not called on the UI thread

   Dispatcher.BeginInvoke(BindData);

}

private void

BindData()

{

           var list = new List<Project>();

           foreach (var li in _projectItems)

           {

               list.Add(new Project

               {

                   Title = li["Title"].ToString(),

                   DueDate =         Convert.ToDateTime(li["Due_x0020_Date"].ToString()),

                  Description = li["Description"].ToString()

               });

           }

           dataGrid1.DataContext = list;}

This code initializes the SharePoint Silverlight client object model context (ClientContext). It then gets a reference to the Projects list. Runs a simple CAML query against the list to pull all projects with a duedate greater than 1/1/2008. The results are converted into a list of Projects and bound to the Silverlight DataGrid control.

Task 3: Deploy and Test using the SharePoint Silverlight web part.

To deploy the solution to SharePoint the resulting .xap file needs to be in the C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin folder.

1.

Right click on your project and select properties and select the Build tab.

2.

Change the output path to the following: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin.

image

3. Build the solution and fix any typos that may have occurred

.

4.

Add the SharePoint Silverlight web part to a web part page:

Click the Edit button to put the page in edit mode.

Click Insert

Click Web Part

Click Authoring

Click Silverlight Web Part

Click Add

5.

When prompted type in: /_layouts/ClientBin/SPSilverlightExample.xap

image

The rendered web part looks like this:

image

Exercise Summary

In this walkthrough you built a Silverlight application that accesses SharePoint lists using the Client Object Model.

February 10th, 2010 Neal McFee 1 comment