08.08.2017 Views

designer

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with Web Parts 115<br />

A common mistake made by companies new to SharePoint is to spend thousands of dollars<br />

and hours of time developing custom Web Parts when one of the built-in Web Parts<br />

would meet their business needs. This is especially true given that SharePoint Designer<br />

allows you to create a Data View Web Part (DVWP), also known as a Data Form Web Part<br />

(DFWP), which is similar to the XLV Web Part and can be used to display and modify data<br />

from data sources such as a Microsoft SQL Server database.<br />

See Also For more information about the Data View Web Part, see Chapter 5, “Working with<br />

Data Views.” The information in Chapter 5 is also relevant to formatting the XLV Web Part.<br />

Web Parts are also classified by where they are located:<br />

●●<br />

●●<br />

Dynamic Web Parts By using SharePoint Designer or the browser, you can place<br />

these Web Parts in the EmbeddedFormField SharePoint control on Wiki pages or in<br />

Web Part zones on Web Part pages. Dynamic Web Parts are stored separately from<br />

the page, and only when a user requests the page is the SQL Server content database<br />

queried to determine the number of dynamic Web Parts, which Web Parts are being<br />

used, where to place them on a page, and, if the page contains Web Part zones,<br />

in which Web Part zone the Web Parts should be placed.<br />

Static Web Parts These Web Parts are placed outside the EmbeddedFormField<br />

SharePoint control or outside Web Part zones. Static Web Parts can be created by using<br />

SharePoint Designer in advanced edit mode, but they cannot be created by using<br />

the browser. Static Web Parts are stored as part of the page.<br />

In this exercise, you add, modify, and delete a Web Part.<br />

SET UP Using SharePoint Designer, open the team site you used in the previous<br />

exercise if it is not already open. Open the home page of the team site in edit<br />

mode and zoom to view the contents by using the command on the View tab or<br />

by right-clicking the page and selecting the command from the menu. Upload<br />

the SilverlightSPDSBS.xap file to your team site’s Site Assets library. See “Using the<br />

Practice Files” on page xxiii.<br />

Web Part<br />

1. Place the insertion point on a new line under the text, Wide World Importers<br />

Human Resources team site, that you added to the page in the previous exercise,<br />

and then click Web Part on the Insert tab.

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

Saved successfully!

Ooh no, something went wrong!