|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
ListControl-Klasse
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.BaseDataBoundControl
System.Web.UI.WebControls.DataBoundControl
System.Web.UI.WebControls.ListControl
System.Web.UI.WebControls.BulletedList
System.Web.UI.WebControls.CheckBoxList
System.Web.UI.WebControls.DropDownList
System.Web.UI.WebControls.ListBox
System.Web.UI.WebControls.RadioButtonList
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Der ListControl-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | AccessKey | |
![]() | Adapter | |
![]() | AppendDataBoundItems | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | Attributes | |
![]() | AutoPostBack | |
![]() | BackColor | |
![]() | BindingContainer | Infrastruktur. |
![]() | BorderColor | |
![]() | BorderStyle | |
![]() | BorderWidth | |
![]() | CausesValidation | |
![]() | ChildControlsCreated | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | Context | |
![]() | Controls | |
![]() | ControlStyle | |
![]() | ControlStyleCreated | |
![]() | CssClass | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DataMember | |
![]() | DataSource | |
![]() | DataSourceID | |
![]() | DataSourceObject | |
![]() | DataTextField | |
![]() | DataTextFormatString | |
![]() | DataValueField | |
![]() | DesignMode | |
![]() | Enabled | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | Font | |
![]() | ForeColor | |
![]() | HasAttributes | |
![]() | HasChildViewState | |
![]() | Height | |
![]() | ID | |
![]() | IdSeparator | Infrastruktur. |
![]() | Initialized | |
![]() | IsBoundUsingDataSourceID | |
![]() | IsChildControlStateCleared | |
![]() | IsDataBindingAutomatic | |
![]() | IsEnabled | |
![]() | IsTrackingViewState | |
![]() | IsUsingModelBinders | |
![]() | IsViewStateEnabled | |
![]() | Items | |
![]() | ItemType | |
![]() | LoadViewStateByID | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | RenderingCompatibility | |
![]() | RequiresDataBinding | |
![]() | SelectArguments | |
![]() | SelectedIndex | |
![]() | SelectedItem | |
![]() | SelectedValue | |
![]() | SelectMethod | |
![]() | Site | |
![]() | SkinID | |
![]() | Style | |
![]() | SupportsDisabledAttribute | |
![]() | TabIndex | |
![]() | TagKey | |
![]() | TagName | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | Text | |
![]() | ToolTip | |
![]() | UniqueID | |
![]() | ValidateRequestMode | |
![]() | ValidationGroup | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible | |
![]() | Width |
| Name | Beschreibung | |
|---|---|---|
![]() | AddAttributesToRender | |
![]() | AddedControl | |
![]() | AddParsedSubObject | |
![]() | ApplyStyle | |
![]() | ApplyStyleSheetSkin | |
![]() | BeginRenderTracing | |
![]() | BuildProfileTree | Infrastruktur. |
![]() | ClearCachedClientID | Infrastruktur. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastruktur. |
![]() | ClearSelection | |
![]() | ConfirmInitState | |
![]() | CopyBaseAttributes | |
![]() | CreateChildControls | |
![]() | CreateControlCollection | |
![]() | CreateControlStyle | |
![]() | CreateDataSourceSelectArguments | |
![]() | DataBind() | |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EndRenderTracing | |
![]() | EnsureChildControls | |
![]() | EnsureDataBound | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastruktur. |
![]() | Focus | |
![]() | GetData | |
![]() | GetDataSource | |
![]() | GetDesignModeState | Infrastruktur. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | IsLiteralContent | Infrastruktur. |
![]() | LoadControlState | |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MarkAsDataBound | |
![]() | MemberwiseClone | |
![]() | MergeStyle | |
![]() | OnBubbleEvent | |
![]() | OnCreatingModelDataSource | |
![]() | OnDataBinding | Infrastruktur. |
![]() | OnDataBound | |
![]() | OnDataPropertyChanged | |
![]() | OnDataSourceViewChanged | |
![]() | OnInit | |
![]() | OnLoad | |
![]() | OnPagePreLoad | |
![]() | OnPreRender | |
![]() | OnSelectedIndexChanged | |
![]() | OnTextChanged | |
![]() | OnUnload | |
![]() | OpenFile | |
![]() | PerformDataBinding | Infrastruktur. |
![]() | PerformSelect | |
![]() | RaiseBubbleEvent | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderBeginTag | |
![]() | RenderChildren | |
![]() | RenderContents | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | RenderEndTag | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetPostDataSelection | Infrastruktur. |
![]() | SetRenderMethodDelegate | Infrastruktur. |
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString | |
![]() | TrackViewState | |
![]() | ValidateDataSource | |
![]() | VerifyMultiSelect | Infrastruktur. |
| Name | Beschreibung | |
|---|---|---|
![]() | CallingDataMethods | |
![]() | CreatingModelDataSource | |
![]() | DataBinding | |
![]() | DataBound | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | SelectedIndexChanged | |
![]() | TextChanged | |
![]() | Unload |
| Name | Beschreibung | |
|---|---|---|
![]() | EnablePersistedSelection | |
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable |
| Name | Beschreibung | |
|---|---|---|
![]() ![]() | IAttributeAccessor.GetAttribute | Infrastruktur. |
![]() ![]() | IAttributeAccessor.SetAttribute | |
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastruktur. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject |
Sicherheitshinweis |
|---|
<%@ 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 runat="server"> <title> ListControl SelectedValue Example </title> <script runat="server"> void Button_Click(Object sender, EventArgs e) { // Perform this operation in a try-catch block in case the item is not found. try { List.SelectedValue = ItemTextBox.Text; MessageLabel.Text = "You selected " + List.SelectedValue + "."; } catch (Exception ex) { List.SelectedValue = null; MessageLabel.Text = "Item not found in ListBox control."; } } </script> </head> <body> <form id="form1" runat="server"> <h3> ListControl SelectedValue Example </h3> <asp:ListBox ID="List" runat="server"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> <asp:ListItem>Item 4</asp:ListItem> </asp:ListBox> <hr /> Enter the value of the item to select: <br /> <asp:TextBox ID="ItemTextBox" MaxLength="6" Text="Item 1" runat="server"/> <asp:Button ID="SelectButton" Text="Select Item" OnClick="Button_Click" runat="server"/> <br /><br /> <asp:Label ID="MessageLabel" runat="server"/> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.

