VariationsLabelEcbMenu.IsCallbackMode Property
Boolean value that determines if the control should execute in ASP.NET Callback mode.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property IsCallbackMode As Boolean
Get
Set
'Usage
Dim instance As VariationsLabelEcbMenu
Dim value As Boolean
value = instance.IsCallbackMode
instance.IsCallbackMode = value
public bool IsCallbackMode { get; set; }
Property Value
Type: System.Boolean
Remarks
Callback mode performs better when the Web page is initially rendered, because no server-side processing has been performed to calculate and populate the Variation peer links. Only when the drop-down is clicked, a callback request is made to the server to retrieve the list.
The trade off is that the control responds more slowly when it is clicked the first time because it needs to make the Callback request.
The advantage is that the request incurs no unnecessary processing if the control is never clicked.
The opposite behavior is that the initial control rendering calculates the Variation peer links as part of the initial control rendering. Peforming this calculation during rendering takes more processing time, but the response time on the client side when the control is clicked is much faster.