VariationDataSource Class
Represents the DataSource control that supplies data used to render the Variation Flag control.
System.Object
System.Web.UI.Control
System.Web.UI.HierarchicalDataSourceControl
Microsoft.SharePoint.Publishing.WebControls.VariationDataSource
System.Web.UI.Control
System.Web.UI.HierarchicalDataSourceControl
Microsoft.SharePoint.Publishing.WebControls.VariationDataSource
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public sealed class VariationDataSource : HierarchicalDataSourceControl, IDataSource
This example demonstrates how to connect an <asp:DataList> control to the VariationDataSource.
[asp]
<asp:DataList id="DataList1" CellPadding="3" Font-Size="8pt" RepeatDirection="Horizontal" runat="server" DataSourceID="LabelMenuDataSource" > <ItemTemplate> <a href="<%# DataBinder.Eval(Container.DataItem, "NavigateUrl") %>"> <%# DataBinder.Eval(Container.DataItem, "DisplayText") %></a> </ItemTemplate> <SeparatorTemplate> | </SeparatorTemplate> </asp:DataList>