Skip to content

Commit 4c0a328

Browse files
authored
update msdn links (#3842)
1 parent d77142f commit 4c0a328

File tree

76 files changed

+17720
-17720
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+17720
-17720
lines changed

xml/System.Web.UI.WebControls.WebParts/BehaviorEditorPart.xml

Lines changed: 166 additions & 166 deletions
Large diffs are not rendered by default.

xml/System.Web.UI.WebControls.WebParts/CatalogZoneBase.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@
746746
<format type="text/markdown"><![CDATA[
747747
748748
## Remarks
749-
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, you can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://msdn.microsoft.com/library/0218d965-5d30-445b-b6a6-8870e70e63ce(v=vs.100)).
749+
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, you can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://docs.microsoft.com/previous-versions/aspnet/75x4ha6s(v=vs.100)).
750750
751751
The <xref:System.Web.UI.WebControls.WebParts.CatalogZoneBase.LoadViewState%2A> method first calls the base method to load any previously existing state information. Next, it adds the view-state data object containing the state information for the add verb, the close verb, the <xref:System.Web.UI.WebControls.WebParts.CatalogZoneBase.PartLinkStyle%2A> object, and the <xref:System.Web.UI.WebControls.WebParts.CatalogZoneBase.SelectedPartLinkStyle%2A> object.
752752

xml/System.Web.UI.WebControls.WebParts/ConnectionsZone.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@
14511451
<format type="text/markdown"><![CDATA[
14521452
14531453
## Remarks
1454-
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, control developers can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://msdn.microsoft.com/library/0218d965-5d30-445b-b6a6-8870e70e63ce(v=vs.100)).
1454+
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, control developers can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://docs.microsoft.com/previous-versions/aspnet/75x4ha6s(v=vs.100)).
14551455
14561456
When this method is invoked, it determines whether view state was previously saved for the control and, if so, sets the view state to the saved value. The method overrides the <xref:System.Web.UI.WebControls.WebParts.ToolZone.LoadViewState%2A> method inherited from the <xref:System.Web.UI.WebControls.WebParts.ToolZone> class, so that it can add to the base implementation and restore state for the several zone-level verbs used in the <xref:System.Web.UI.WebControls.WebParts.ConnectionsZone> control.
14571457

xml/System.Web.UI.WebControls.WebParts/EditorZoneBase.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
<format type="text/markdown"><![CDATA[
655655
656656
## Remarks
657-
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, control developers can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://msdn.microsoft.com/library/0218d965-5d30-445b-b6a6-8870e70e63ce(v=vs.100)).
657+
This method is used primarily by the .NET Framework infrastructure and is not intended to be used directly from your code. However, control developers can override this method to specify how a custom server control restores its view state. For more information, see [ASP.NET State Management Overview](https://docs.microsoft.com/previous-versions/aspnet/75x4ha6s(v=vs.100)).
658658
659659
The <xref:System.Web.UI.WebControls.WebParts.EditorZoneBase.LoadViewState%2A> method overrides the base method to check whether the page is being loaded because an OK verb, a cancel verb, or an apply verb was clicked in the zone. If so, the method handles the state associated with each respective scenario.
660660

xml/System.Web.UI.WebControls.WebParts/IWebActionable.xml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,33 @@
1414
<Docs>
1515
<summary>Enables <see cref="T:System.Web.UI.WebControls.WebParts.WebPart" /> controls or other server controls to contain collections of verbs.</summary>
1616
<remarks>
17-
<format type="text/markdown"><![CDATA[
18-
19-
## Remarks
20-
A verb in <xref:System.Web.UI.WebControls.WebParts.WebPart> controls is an action that a user can carry out in the user interface (UI). Typically, a verb is represented in the UI by a clickable control such as a button, a link, or a menu item. The Web Parts control set provides standard verbs that are available by default to <xref:System.Web.UI.WebControls.WebParts.WebPart> controls and other server controls (such as custom, ASP.NET, and user controls) that can act like <xref:System.Web.UI.WebControls.WebParts.WebPart> controls when placed in <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase> zones. Standard verbs include close, minimize, restore, delete, edit, and export.
21-
22-
You can also create custom verbs for use with <xref:System.Web.UI.WebControls.WebParts.WebPart> and server controls. The <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface, with its <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property, gives you a way to integrate custom verbs into your controls. The <xref:System.Web.UI.WebControls.WebParts.WebPart> class implements the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface and implements its single property. To add custom verbs to a control that inherits from the <xref:System.Web.UI.WebControls.WebParts.WebPart> class, you must override the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property, add custom verbs to a collection, and return the collection. The collection referenced by the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property contains only custom verbs; standard verbs are not included in this collection. The default return value of the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property in a <xref:System.Web.UI.WebControls.WebParts.WebPart> control is `null`, because by default there are no custom verbs in the collection.
23-
24-
Adding custom verbs to server controls that are not <xref:System.Web.UI.WebControls.WebParts.WebPart> controls requires one extra step. In those cases, the controls must also implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface and implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property.
25-
26-
After you have added custom verbs to the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> collection, the Web Parts control set automatically handles the other steps necessary to create and render the custom verbs.
27-
28-
29-
30-
## Examples
31-
The following code example demonstrates a simple implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface. The first part of the code example shows how the interface is implemented in a user control. The user control implements the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property by creating two custom verbs and defining a method that is called when a user clicks either of the verbs. For simplicity, the same method is used for both verbs. The method updates the value of a property named `VerbCounterClicks`. The code for the `Page_Load` method accesses the <xref:System.Web.UI.WebControls.WebParts.GenericWebPart.Verbs%2A> property of the control to display the total count of custom verbs in the collection. This count does not include the standard Web Parts verbs.
32-
17+
<format type="text/markdown"><![CDATA[
18+
19+
## Remarks
20+
A verb in <xref:System.Web.UI.WebControls.WebParts.WebPart> controls is an action that a user can carry out in the user interface (UI). Typically, a verb is represented in the UI by a clickable control such as a button, a link, or a menu item. The Web Parts control set provides standard verbs that are available by default to <xref:System.Web.UI.WebControls.WebParts.WebPart> controls and other server controls (such as custom, ASP.NET, and user controls) that can act like <xref:System.Web.UI.WebControls.WebParts.WebPart> controls when placed in <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase> zones. Standard verbs include close, minimize, restore, delete, edit, and export.
21+
22+
You can also create custom verbs for use with <xref:System.Web.UI.WebControls.WebParts.WebPart> and server controls. The <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface, with its <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property, gives you a way to integrate custom verbs into your controls. The <xref:System.Web.UI.WebControls.WebParts.WebPart> class implements the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface and implements its single property. To add custom verbs to a control that inherits from the <xref:System.Web.UI.WebControls.WebParts.WebPart> class, you must override the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property, add custom verbs to a collection, and return the collection. The collection referenced by the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property contains only custom verbs; standard verbs are not included in this collection. The default return value of the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A?displayProperty=nameWithType> property in a <xref:System.Web.UI.WebControls.WebParts.WebPart> control is `null`, because by default there are no custom verbs in the collection.
23+
24+
Adding custom verbs to server controls that are not <xref:System.Web.UI.WebControls.WebParts.WebPart> controls requires one extra step. In those cases, the controls must also implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface and implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property.
25+
26+
After you have added custom verbs to the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> collection, the Web Parts control set automatically handles the other steps necessary to create and render the custom verbs.
27+
28+
29+
30+
## Examples
31+
The following code example demonstrates a simple implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface. The first part of the code example shows how the interface is implemented in a user control. The user control implements the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property by creating two custom verbs and defining a method that is called when a user clicks either of the verbs. For simplicity, the same method is used for both verbs. The method updates the value of a property named `VerbCounterClicks`. The code for the `Page_Load` method accesses the <xref:System.Web.UI.WebControls.WebParts.GenericWebPart.Verbs%2A> property of the control to display the total count of custom verbs in the collection. This count does not include the standard Web Parts verbs.
32+
3333
> [!IMPORTANT]
34-
> This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see [Script Exploits Overview](https://msdn.microsoft.com/library/772c7312-211a-4eb3-8d6e-eec0aa1dcc07).
35-
34+
> This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see [Script Exploits Overview](https://docs.microsoft.com/previous-versions/aspnet/w1sw53ds(v=vs.100)).
35+
3636
[!code-aspx-csharp[WebParts_IWebActionable_Overview#2](~/samples/snippets/csharp/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/CS/usercontrolverbcs.ascx#2)]
37-
[!code-aspx-vb[WebParts_IWebActionable_Overview#2](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbvb.ascx#2)]
38-
39-
The second part of the code example is an .aspx page that hosts the user control. Because the control is referenced in a <xref:System.Web.UI.WebControls.WebParts.WebPartZone> control, at run time ASP.NET wraps the user control in a <xref:System.Web.UI.WebControls.WebParts.GenericWebPart> control and treats it as a <xref:System.Web.UI.WebControls.WebParts.WebPart> control. After you load the page in a browser, notice that the label at the bottom of the control displays how many custom verbs are in the collection referenced by the <xref:System.Web.UI.WebControls.WebParts.GenericWebPart.Verbs%2A> property. Also note that if you click the verbs menu in the control, and click either of the verbs, another label appears showing the total number of times the custom verbs have been clicked.
40-
37+
[!code-aspx-vb[WebParts_IWebActionable_Overview#2](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbvb.ascx#2)]
38+
39+
The second part of the code example is an .aspx page that hosts the user control. Because the control is referenced in a <xref:System.Web.UI.WebControls.WebParts.WebPartZone> control, at run time ASP.NET wraps the user control in a <xref:System.Web.UI.WebControls.WebParts.GenericWebPart> control and treats it as a <xref:System.Web.UI.WebControls.WebParts.WebPart> control. After you load the page in a browser, notice that the label at the bottom of the control displays how many custom verbs are in the collection referenced by the <xref:System.Web.UI.WebControls.WebParts.GenericWebPart.Verbs%2A> property. Also note that if you click the verbs menu in the control, and click either of the verbs, another label appears showing the total number of times the custom verbs have been clicked.
40+
4141
[!code-aspx-csharp[WebParts_IWebActionable_Overview#1](~/samples/snippets/csharp/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/CS/usercontrolverbhostcs.aspx#1)]
42-
[!code-aspx-vb[WebParts_IWebActionable_Overview#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbhostvb.aspx#1)]
43-
42+
[!code-aspx-vb[WebParts_IWebActionable_Overview#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbhostvb.aspx#1)]
43+
4444
]]></format>
4545
</remarks>
4646
<altmember cref="P:System.Web.UI.WebControls.WebParts.WebPart.Verbs" />
@@ -68,25 +68,25 @@
6868
<summary>Gets a reference to a collection of custom <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerb" /> objects.</summary>
6969
<value>A <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerbCollection" /> that contains custom <see cref="T:System.Web.UI.WebControls.WebParts.WebPartVerb" /> objects.</value>
7070
<remarks>
71-
<format type="text/markdown"><![CDATA[
72-
73-
## Remarks
74-
The <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property references a collection of custom verbs (if any) that are added to a verbs menu in the header of a <xref:System.Web.UI.WebControls.WebParts.WebPart> or other server control. The <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> collection does not contain references to the standard <xref:System.Web.UI.WebControls.WebParts.WebPartVerb> objects provided with the Web Parts control set, such as <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.CloseVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.DeleteVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.EditVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.RestoreVerb%2A>, or <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.MinimizeVerb%2A>.
75-
76-
Developers who want to add custom verbs to a custom control that derives from the <xref:System.Web.UI.WebControls.WebParts.WebPart> class can simply override the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A> property that the <xref:System.Web.UI.WebControls.WebParts.WebPart> class implements.
77-
78-
Developers who want to add custom verbs to a user control, or a custom control that is not a <xref:System.Web.UI.WebControls.WebParts.WebPart> control, must implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface by providing an implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property.
79-
80-
81-
82-
## Examples
83-
The following code example demonstrates the use of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property as implemented in a user control. The full code for this code example can be found in the Example section of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> class overview topic.
84-
85-
The following portion of the code example demonstrates a custom implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property within a user control.
86-
71+
<format type="text/markdown"><![CDATA[
72+
73+
## Remarks
74+
The <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property references a collection of custom verbs (if any) that are added to a verbs menu in the header of a <xref:System.Web.UI.WebControls.WebParts.WebPart> or other server control. The <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> collection does not contain references to the standard <xref:System.Web.UI.WebControls.WebParts.WebPartVerb> objects provided with the Web Parts control set, such as <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.CloseVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.DeleteVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.EditVerb%2A>, <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.RestoreVerb%2A>, or <xref:System.Web.UI.WebControls.WebParts.WebPartZoneBase.MinimizeVerb%2A>.
75+
76+
Developers who want to add custom verbs to a custom control that derives from the <xref:System.Web.UI.WebControls.WebParts.WebPart> class can simply override the <xref:System.Web.UI.WebControls.WebParts.WebPart.Verbs%2A> property that the <xref:System.Web.UI.WebControls.WebParts.WebPart> class implements.
77+
78+
Developers who want to add custom verbs to a user control, or a custom control that is not a <xref:System.Web.UI.WebControls.WebParts.WebPart> control, must implement the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> interface by providing an implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property.
79+
80+
81+
82+
## Examples
83+
The following code example demonstrates the use of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property as implemented in a user control. The full code for this code example can be found in the Example section of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable> class overview topic.
84+
85+
The following portion of the code example demonstrates a custom implementation of the <xref:System.Web.UI.WebControls.WebParts.IWebActionable.Verbs%2A> property within a user control.
86+
8787
[!code-csharp[WebParts_IWebActionable_Overview#3](~/samples/snippets/csharp/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/CS/usercontrolverbcs.ascx#3)]
88-
[!code-vb[WebParts_IWebActionable_Overview#3](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbvb.ascx#3)]
89-
88+
[!code-vb[WebParts_IWebActionable_Overview#3](~/samples/snippets/visualbasic/VS_Snippets_WebNet/WebParts_IWebActionable_Overview/VB/usercontrolverbvb.ascx#3)]
89+
9090
]]></format>
9191
</remarks>
9292
<altmember cref="P:System.Web.UI.WebControls.WebParts.WebPart.Verbs" />

0 commit comments

Comments
 (0)