|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
Repeater, classe
System.Web.UI.Control
System.Web.UI.WebControls.Repeater
System.Web.DynamicData.FilterRepeater
Espace de noms : System.Web.UI.WebControls
Assembly : System.Web (dans System.Web.dll)
Le type Repeater expose les membres suivants.
| Nom | Description | |
|---|---|---|
![]() | Adapter | |
![]() | AlternatingItemTemplate | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | BindingContainer | Infrastructure. |
![]() | ChildControlsCreated | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | Context | |
![]() | Controls | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DataMember | |
![]() | DataSource | |
![]() | DataSourceID | |
![]() | DesignMode | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | FooterTemplate | |
![]() | HasChildViewState | |
![]() | HeaderTemplate | |
![]() | ID | |
![]() | IdSeparator | Infrastructure. |
![]() | Initialized | Infrastructure. |
![]() | IsBoundUsingDataSourceID | Infrastructure. |
![]() | IsChildControlStateCleared | |
![]() | IsDataBindingAutomatic | |
![]() | IsTrackingViewState | |
![]() | IsViewStateEnabled | |
![]() | Items | |
![]() | ItemTemplate | |
![]() | ItemType | |
![]() | LoadViewStateByID | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | RenderingCompatibility | |
![]() | RequiresDataBinding | |
![]() | SelectArguments | Infrastructure. |
![]() | SelectMethod | |
![]() | SeparatorTemplate | |
![]() | Site | |
![]() | SkinID | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | UniqueID | |
![]() | ValidateRequestMode | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible |
| Nom | Description | |
|---|---|---|
![]() | AddedControl | |
![]() | AddParsedSubObject | |
![]() | ApplyStyleSheetSkin | |
![]() | BeginRenderTracing | |
![]() | BuildProfileTree | Infrastructure. |
![]() | ClearCachedClientID | Infrastructure. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastructure. |
![]() | CreateChildControls | Infrastructure. |
![]() | CreateControlCollection | |
![]() | CreateControlHierarchy | Infrastructure. |
![]() | CreateDataSourceSelectArguments | Infrastructure. |
![]() | CreateItem | Infrastructure. |
![]() | DataBind() | Infrastructure. |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EndRenderTracing | |
![]() | EnsureChildControls | |
![]() | EnsureDataBound | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastructure. |
![]() | Focus | |
![]() | GetData | Infrastructure. |
![]() | GetDesignModeState | Infrastructure. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | InitializeItem | Infrastructure. |
![]() | IsLiteralContent | Infrastructure. |
![]() | LoadControlState | |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MemberwiseClone | |
![]() | OnBubbleEvent | Infrastructure. |
![]() | OnCreatingModelDataSource | |
![]() | OnDataBinding | Infrastructure. |
![]() | OnDataPropertyChanged | Infrastructure. |
![]() | OnDataSourceViewChanged | |
![]() | OnInit | |
![]() | OnItemCommand | |
![]() | OnItemCreated | |
![]() | OnItemDataBound | |
![]() | OnLoad | |
![]() | OnPreRender | |
![]() | OnUnload | |
![]() | OpenFile | |
![]() | RaiseBubbleEvent | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderChildren | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetRenderMethodDelegate | Infrastructure. |
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString | |
![]() | TrackViewState |
| Nom | Description | |
|---|---|---|
![]() | CallingDataMethods | |
![]() | CreatingModelDataSource | |
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | ItemCommand | |
![]() | ItemCreated | |
![]() | ItemDataBound | |
![]() | Load | |
![]() | PreRender | |
![]() | Unload |
| Nom | Description | |
|---|---|---|
![]() | EnableDynamicData(Type) | Surchargé. |
![]() | EnableDynamicData(Type, Object) | Surchargé. |
![]() | EnableDynamicData(Type, IDictionary<String, Object>) | Surchargé. |
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable | |
![]() | GetDefaultValues | |
![]() | GetMetaTable | |
![]() | SetMetaTable(MetaTable) | Surchargé. |
![]() | SetMetaTable(MetaTable, IDictionary<String, Object>) | Surchargé. |
![]() | SetMetaTable(MetaTable, Object) | Surchargé. |
![]() | TryGetMetaTable |
| Nom | Description | |
|---|---|---|
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastructure. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject |
Introduction
Attention |
|---|
Liaison de données
Modèles
Syntaxe déclarative
<asp:Repeater
DataMember="string"
DataSource="string"
DataSourceID="string"
EnableTheming="True|False"
EnableViewState="True|False"
ID="string"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnItemCommand="ItemCommand event handler"
OnItemCreated="ItemCreated event handler"
OnItemDataBound="ItemDataBound event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
Visible="True|False"
>
<AlternatingItemTemplate>
<!-- child controls -->
</AlternatingItemTemplate>
<FooterTemplate>
<!-- child controls -->
</FooterTemplate>
<HeaderTemplate>
<!-- child controls -->
</HeaderTemplate>
<ItemTemplate>
<!-- child controls -->
</ItemTemplate>
<SeparatorTemplate>
<!-- child controls -->
</SeparatorTemplate>
</asp:Repeater>
<%@ Page Language="C#" AutoEventWireup="True" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Repeater Example</title> <script language="C#" runat="server"> void Page_Load(Object Sender, EventArgs e) { if (!IsPostBack) { ArrayList values = new ArrayList(); values.Add(new PositionData("Microsoft", "Msft")); values.Add(new PositionData("Intel", "Intc")); values.Add(new PositionData("Dell", "Dell")); Repeater1.DataSource = values; Repeater1.DataBind(); Repeater2.DataSource = values; Repeater2.DataBind(); } } public class PositionData { private string name; private string ticker; public PositionData(string name, string ticker) { this.name = name; this.ticker = ticker; } public string Name { get { return name; } } public string Ticker { get { return ticker; } } } </script> </head> <body> <h3>Repeater Example</h3> <form id="form1" runat="server"> <b>Repeater1:</b> <br /> <asp:Repeater id="Repeater1" runat="server"> <HeaderTemplate> <table border="1"> <tr> <td><b>Company</b></td> <td><b>Symbol</b></td> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td> <%# DataBinder.Eval(Container.DataItem, "Name") %> </td> <td> <%# DataBinder.Eval(Container.DataItem, "Ticker") %> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> <br /> <b>Repeater2:</b> <br /> <asp:Repeater id="Repeater2" runat="server"> <HeaderTemplate> Company data: </HeaderTemplate> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Name") %> (<%# DataBinder.Eval(Container.DataItem, "Ticker") %>) </ItemTemplate> <SeparatorTemplate>, </SeparatorTemplate> </asp:Repeater> </form> </body> </html>
<%@ page language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Repeater.DataSourceID Property Example</title> </head> <body> <form id="Form1" runat="server"> <h3>Repeater.DataSourceID Property Example</h3> <asp:repeater id="Repeater1" datasourceid="SqlDataSource1" runat="server"> <headertemplate> <table border="1"> <tr> <td><b>Product ID</b></td> <td><b>Product Name</b></td> </tr> </headertemplate> <itemtemplate> <tr> <td> <%# Eval("ProductID") %> </td> <td> <%# Eval("ProductName") %> </td> </tr> </itemtemplate> <footertemplate> </table> </footertemplate> </asp:repeater> <asp:sqldatasource id="SqlDataSource1" connectionstring="<%$ ConnectionStrings:NorthWindConnection%>" selectcommand="SELECT ProductID, ProductName FROM [Products] Where ProductID <= 10" runat="server"> </asp:sqldatasource> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (rôle principal du serveur non pris en charge), Windows Server 2008 R2 (rôle principal du serveur pris en charge avec SP1 ou version ultérieure ; Itanium non pris en charge)
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

