Compartilhar via


Web Part Execution

When the Web Parts infrastructure receives a request to render a Web Part Page, it goes to the Microsoft® Windows® SharePoint™ Services database to retrieve all of the metadata it needs to render the parts onto the page. For example, it does the following:

  • Retrieves the page's collection of Web Parts (see the SPWebPartCollection class).
  • Determines whether the page is in personal or shared view.
  • Resolves personalization and customization considerations.
  • Checks security for permissions.
  • Verifies that the parts are in the safe controls list.

After it has this information, the infrastructure creates each Web Part and applies its properties on a zone-by-zone basis (using the ZoneID property), until all the parts are rendered on the page, and the page is returned to the requestor.

For more information about creating Web Parts, see Web Part Infrastructure Concepts. For an example of how to create a Web Part, see Creating a Basic Web Part.