Skip to content

Commit 624ba1c

Browse files
committed
Removed disallowed HTML
1 parent 58a581c commit 624ba1c

10 files changed

+48
-48
lines changed

docs/sp-add-ins/add-a-web-part-to-a-page-in-a-sharepoint-hosted-sharepoint-add-in.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add a web part to a page in a SharePoint-hosted SharePoint Add-in
33
description: Add a web part to a page, and run and test the add-in.
4-
ms.date: 06/22/2021
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -18,8 +18,8 @@ In this article, you add a web part to the default page of the Employee Orientat
1818
## Add a web part to a page
1919

2020
1. In **Solution Explorer**, open the Default.aspx file.
21-
1. Because we'll be adding a list view web part to the page that surfaces the New Employees in Seattle list, we no longer need a link to the list view page for the list. Remove the **<asp:HyperLink>** element from the **<asp:Content>** element whose **ContentPlaceHolderId** is `PlaceHolderMain`.
22-
1. Inside the same **<asp:Content>** element, add the following **WebPartZone**.
21+
1. Because we'll be adding a list view web part to the page that surfaces the New Employees in Seattle list, we no longer need a link to the list view page for the list. Remove the **\<asp:HyperLink\>** element from the **\<asp:Content\>** element whose **ContentPlaceHolderId** is `PlaceHolderMain`.
22+
1. Inside the same **\<asp:Content\>** element, add the following **WebPartZone**.
2323

2424
```XML
2525
<WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly"
@@ -32,7 +32,7 @@ In this article, you add a web part to the default page of the Employee Orientat
3232
1. In the **File** element, add a child **AllUsersWebPart** element, and set its **WebPartZoneID** to the ID of the web part zone that you created on the page. The file's contents should now look like the following. This markup tells SharePoint to insert an **AllUsersWebPart** into the web part zone that is named "HomePage1".
3333

3434
```xml
35-
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
35+
<Elements xmlns="https://schemas.microsoft.com/sharepoint/">
3636
<Module Name="Pages">
3737
<File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" >
3838
<AllUsersWebPart WebPartZoneID="HomePage1" WebPartOrder="1">
@@ -59,7 +59,7 @@ In this article, you add a web part to the default page of the Employee Orientat
5959
1. Add the following **webPart** markup as a child of the **webParts** element. This markup adds an **XsltListViewWebPart** and tells the web part to show the **New Employees in Seattle** list. Note that the **ViewContentTypeId** property value is just `0x`, not the actual ID of the **NewEmployee** content type.
6060

6161
```xml
62-
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
62+
<webPart xmlns="https://schemas.microsoft.com/WebPart/v3">
6363
<metaData>
6464
<type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart,
6565
Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral,

docs/sp-add-ins/add-in-permissions-in-sharepoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ SharePoint Add-ins that are installed to SharePoint are granted permissions when
295295

296296
When you are developing an add-in or troubleshooting an add-in, there may be occasions when you want to change, or regrant, the permissions of an add-in that has already been installed. You can do so with these steps:
297297

298-
1. Go to `http://<SharePointWebSite>/_layouts/15/AppInv.aspx`, where _<SharePointWebSite>_ is the URL of the website where the add-in is installed. Be careful not to add any query parameters on the URL. The form you need only appears on this page if the URL is exactly as shown.
298+
1. Go to `http://<SharePointWebSite>_layouts/15/AppInv.aspx`, where _\<SharePointWebSite\>_ is the URL of the website where the add-in is installed. Be careful not to add any query parameters on the URL. The form you need only appears on this page if the URL is exactly as shown.
299299

300300
2. Enter the add-in's ID, also called the client ID, in the **Add-in Id** box, and then select **Lookup**. The other boxes on the form are then populated with information about the add-in.
301301

docs/sp-add-ins/authorization-code-oauth-flow-for-sharepoint-add-ins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Authorization Code OAuth flow for SharePoint Add-ins
33
description: The OAuth flow for add-ins that request permission to access SharePoint resources on the fly, and how to use the **OAuthAuthorize.aspx** page and the SharePoint redirect URI.
4-
ms.date: 06/22/2021
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -128,7 +128,7 @@ The Fabrikam SharePoint Online site asks ACS to create a short-lived (approximat
128128

129129
The Fabrikam SharePoint Online site redirects the browser back to Contoso via HTTP 302 Response. The URL construct for this redirection uses the redirect URI that was specified when the photo-printing add-in was registered. It also includes the authorization code as a query string.
130130

131-
The redirect URL is structured like the following: **https://contoso.com/RedirectAccept.aspx?code=<authcode>**
131+
The redirect URL is structured like the following: **https://contoso.com/RedirectAccept.aspx?code=\<authcode\>**
132132

133133
#### Step 6: The add-in uses the authorization code to request an access token from ACS, which validates the request, invalidates the authorization code, and then sends access and refresh tokens to the add-in
134134

docs/sp-add-ins/convert-an-autohosted-sharepoint-add-in-to-a-provider-hosted-add-in.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Convert an autohosted SharePoint Add-in to a provider-hosted add-in
33
description: Steps to convert an autohosted SharePoint Add-in to a provider-hosted add-in, including deploying to Azure SQL, creating an Azure website, and registering the add-in.
4-
ms.date: 12/27/2017
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: medium
77
---
@@ -217,7 +217,7 @@ The next step is to reconfigure the remote web application so that it can be dep
217217

218218
### To update the remote web application project
219219

220-
The big change that needs to occur in the ASP.NET MVC web application is within the web.config file. Within this file there are three settings found within the **<appSettings>** node. These are the **ClientId**, **ClientSecret**, and **SqlAzureConnectionString**. The first two are used by the Microsoft-provided class, in TokenHelper.cs or .vb, to facilitate authenticating and communicating with SharePoint from the remote web application. The latter, **SqlAzureConnectionString**, is used by the add-in to connect to the Azure SQL Database.
220+
The big change that needs to occur in the ASP.NET MVC web application is within the web.config file. Within this file there are three settings found within the **\<appSettings\>** node. These are the **ClientId**, **ClientSecret**, and **SqlAzureConnectionString**. The first two are used by the Microsoft-provided class, in TokenHelper.cs or .vb, to facilitate authenticating and communicating with SharePoint from the remote web application. The latter, **SqlAzureConnectionString**, is used by the add-in to connect to the Azure SQL Database.
221221

222222
In a SharePoint autohosted add-in, Office 365 fills in the values for these settings when the Azure website and Azure SQL Database are created when the add-in is installed. However, in a provider-hosted add-in, these must be manually set before the add-in is deployed.
223223

@@ -300,7 +300,7 @@ The last step is to reconfigure the SharePoint Add-in project. The Visual Studio
300300
> [!IMPORTANT]
301301
> If the existing ProductId was used, SharePoint returns the error "The provided add-in differs from another add-in with the same version and product ID" when the converted add-in is installed.
302302
303-
7. Find the **<RemoteWebApplication>** element and update the **ClientId** attribute to be the same GUID that was obtained when registering the add-in with SharePoint and that was used in the Azure website's web.config add-in settings.
303+
7. Find the **\<RemoteWebApplication\>** element and update the **ClientId** attribute to be the same GUID that was obtained when registering the add-in with SharePoint and that was used in the Azure website's web.config add-in settings.
304304

305305
![Client ID attribute in app manifest](../images/ConvertAuto2ProviderFig22.jpg)
306306

docs/sp-add-ins/create-a-provider-hosted-add-in-that-includes-a-custom-sharepoint-list-and-conte.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Create a provider-hosted add-in that includes a custom SharePoint list and content type
33
description: Create a SharePoint Add-in that combines a cloud-hosted web application with custom SharePoint-hosted list templates, list instances, and custom content types by using the Office Developer Tools for Visual Studio.
4-
ms.date: 12/26/2017
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -421,9 +421,9 @@ For the continuing example, you develop an ASP.NET web application. Take the fol
421421

422422
<br/>
423423

424-
9. Add the following code to parse the ATOM-formatted response XML. It uses the classes of the [System.Xml.Linq](https://msdn.microsoft.com/library/bb299195) namespace to parse the data that is returned and construct a [List<T>](https://msdn.microsoft.com/library/6sh2ey19) of the items from the SharePoint list. (You could also use the classes of the [System.Xml](https://msdn.microsoft.com/library/y3y47afh) namespace.)
424+
9. Add the following code to parse the ATOM-formatted response XML. It uses the classes of the [System.Xml.Linq](https://msdn.microsoft.com/library/bb299195) namespace to parse the data that is returned and construct a [List\<T\>](https://msdn.microsoft.com/library/6sh2ey19) of the items from the SharePoint list. (You could also use the classes of the [System.Xml](https://msdn.microsoft.com/library/y3y47afh) namespace.)
425425

426-
Note that, in the XML that SharePoint returns, the child elements of the **entry** element hold metadata about the list item. The actual row data of a SharePoint list item is nested two layers down in the **properties** element. For that reason the [Elements<T>](https://msdn.microsoft.com/library/bb348465) extension method is used twice to filter out the higher levels.
426+
Note that, in the XML that SharePoint returns, the child elements of the **entry** element hold metadata about the list item. The actual row data of a SharePoint list item is nested two layers down in the **properties** element. For that reason the [Elements\<T\>](https://msdn.microsoft.com/library/bb348465) extension method is used twice to filter out the higher levels.
427427

428428
```csharp
429429
// Response markup parsing section
@@ -440,7 +440,7 @@ For the continuing example, you develop an ASP.NET web application. Take the fol
440440

441441
<br/>
442442

443-
10. Add the following LINQ query to construct an [IEnumerable<T>](https://msdn.microsoft.com/library/9eekhta0) collection of an anonymous type that has just the properties you need and no others. Note that although the code must refer to the item title field by its internal name `Title`, the property name in the anonymous type, to which the value is assigned, can be named `Character`. One effect of this is that when the collection is bound to a grid control, the more appropriate name **Character** appears on the page.
443+
10. Add the following LINQ query to construct an [IEnumerable\<T\>](https://msdn.microsoft.com/library/9eekhta0) collection of an anonymous type that has just the properties you need and no others. Note that although the code must refer to the item title field by its internal name `Title`, the property name in the anonymous type, to which the value is assigned, can be named `Character`. One effect of this is that when the collection is bound to a grid control, the more appropriate name **Character** appears on the page.
444444

445445
```csharp
446446
var entryFieldValues = from entry in entries

docs/sp-add-ins/include-a-web-part-in-a-webpage-on-the-add-in-web.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Include a web part on a webpage in the add-in web
33
description: Include an out-of-the-box web part on a page in the add-in web of a SharePoint Add-in.
4-
ms.date: 06/22/2021
4+
ms.date: 06/13/2022
55
ms.prod: sharepoint
66
ms.localizationpriority: medium
77
---
@@ -25,7 +25,7 @@ For a code sample that illustrates the guidance of this topic, see [OfficeDev/Co
2525
```
2626

2727
> [!WARNING]
28-
> It is possible to add a web part element, such as **<WebPartPages:XsltListViewWebPart>** as a child of the **WebPartZone**. But this is generally a bad practice in a SharePoint Add-in. If the add-in ever needs to be updated, a web part element inserted in the .aspx file can cause the update to fail in some scenarios with the message "A web part with this ID has already been added to this page." We recommend that you add web parts to the elements manifest for the page as described later in this procedure.
28+
> It is possible to add a web part element, such as **\<WebPartPages:XsltListViewWebPart\>** as a child of the **WebPartZone**. But this is generally a bad practice in a SharePoint Add-in. If the add-in ever needs to be updated, a web part element inserted in the .aspx file can cause the update to fail in some scenarios with the message "A web part with this ID has already been added to this page." We recommend that you add web parts to the elements manifest for the page as described later in this procedure.
2929

3030
1. Open the element manifest file for the page. This is usually called elements.xml and is located in the same project folder as the .aspx file.
3131
1. In the **File** element for the page, add a child **AllUsersWebPart** element, and set its **WebPartZoneID** to the value of the web part zone that you created on the page, as this example shows.

0 commit comments

Comments
 (0)