16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

952 Part IX: Maintaining a Server in Windows SharePoint Services<br />

SharePoint Services document library to your application outside of the Windows<br />

SharePoint Services environment. This functionality cannot be underestimated: the<br />

ability to access internal components enables you to create external functionality on<br />

a gr<strong>and</strong> scale. Rather than moving data from point A to point B, writing display<br />

pages, <strong>and</strong> so forth, we can use the same Windows SharePoint Services component,<br />

including its user interface in both sites, <strong>and</strong> still maintain security.<br />

Note Not all Windows SharePoint Services component objects can be<br />

used in an ASP.NET application. Some require parts of the framework that<br />

prevent use outside of a Windows SharePoint Services site. Although all lists<br />

<strong>and</strong> document libraries are supported, additional ones are being added.<br />

Sharing Windows SharePoint Services Component Data<br />

Although we can instantiate a Windows SharePoint Services component within our<br />

application, the focus of our example in this chapter is to access the data (or content)<br />

within a component within a Windows SharePoint Services site. In other words, we’re<br />

going to set up a st<strong>and</strong>ard Windows SharePoint Services site, set up a component<br />

there, <strong>and</strong> then get (<strong>and</strong> display) the data it holds in an ASP.NET application.<br />

Why would we do this? Simple: we can use a Windows SharePoint Services<br />

component to do all the work (add, update, delete, <strong>and</strong> so on) within a secured<br />

environment (even our intranet) but make this data available (view-only, in our<br />

example) on an ASP.NET application in a completely different environment. This is<br />

a great way to use your intranet content on your external sites <strong>and</strong> maintain security!<br />

In the next section, we will demonstrate how to share Windows SharePoint Services<br />

component data with ASP.NET.<br />

Sharing Windows SharePoint Services Component<br />

Data with ASP.NET<br />

To demonstrate how to share Windows SharePoint Services component data with<br />

ASP.NET, we’ll use a hypothetical company named Contoso, Inc. This section<br />

requires some familiarity with Windows SharePoint Services Administration <strong>and</strong><br />

basic knowledge in objects, Visual Studio, <strong>and</strong> Visual Basic .NET.<br />

The Business Requirements<br />

Contoso, Inc. has a special application named How Cool that it sells <strong>and</strong> supports.<br />

Presently, its corporate site is built on ASP.NET, <strong>and</strong> with only 25 people on staff,<br />

they’ve decided to use Windows SharePoint Services for internal department sites,<br />

document management, <strong>and</strong> knowledge management. The Support Group has its

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!