The Data Zoom Web Part samples can be used as a guide to start generating content with the Data Zoom Web Part. You can find more complex example scripts in the Data Zoom Web Part Scripts Library.
Quick Samples
| Sample Name | Description |
|---|---|
| Welcome User |
Show the display name of the current users inside a welcome message. If no current user is present (anonymous access) an alternate message is displayed. |
| Get User |
Learn how to get a site user using a login name. This sample show two different ways to get the user and includes a tips to create a login name using a back slash character. |
| Get List Item |
Learn how to get a list item from a site and display the list item data in the DataZoom web part. |
| Get List Items Using a CAML Query | Learn how to get a collection of list items using a CAML query. The list items are displayed in a SharePoint style table inside the web part. |
| Get Distinct Column Values | Learn how to get a list of distinct column values of a list. The column values are displayed in a drop-down list and posted back to the page using a query string variable when selected. An if/else condition is used to display the results of the selected item. |
| Get URL for Zone | Get the URL for the Extranet zone (fall back to the default zone if the extranet zone does not exist). Also, display a list of all zones in a SharePoint style table. |
| SQL Query | Learn how to execute a SQL query and display the records in a SharePoint style table inside the web part. |