Questo articolo è stato tradotto automaticamente. Per visualizzare l'articolo in inglese, selezionare la casella di controllo Inglese. È possibile anche visualizzare il testo inglese in una finestra popup posizionando il puntatore del mouse sopra il testo.
|
Traduzione
Inglese
|
Classe DataBoundLiteralControl
Data di pubblicazione: ottobre 2016
Assembly: System.Web (in System.Web.dll)
Nome | Descrizione | |
---|---|---|
![]() | DataBoundLiteralControl(Int32, Int32) |
Questa API supporta l'infrastruttura prodotto e non può essere usata direttamente dal codice.
|
Nome | Descrizione | |
---|---|---|
![]() | AppRelativeTemplateSourceDirectory | |
![]() | BindingContainer |
Questa API supporta l'infrastruttura prodotto e non può essere usata direttamente dal codice.
|
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | Context | |
![]() | Controls | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DesignMode | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | ID | |
![]() | IsChildControlStateCleared | |
![]() | IsViewStateEnabled | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | RenderingCompatibility | |
![]() | Site | |
![]() | SkinID | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | Text | |
![]() | UniqueID | |
![]() | ValidateRequestMode | |
![]() | ViewStateMode | |
![]() | Visible |
Nome | Descrizione | |
---|---|---|
![]() | AddedControl(Control, Int32) | |
![]() | ApplyStyleSheetSkin(Page) | |
![]() | CreateChildControls() | |
![]() | DataBind() | |
![]() | Dispose() | |
![]() | Equals(Object) | |
![]() | FindControl(String) | |
![]() | Focus() | |
![]() | GetHashCode() | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType() | |
![]() | GetUniqueIDRelativeTo(Control) | |
![]() | HasControls() | |
![]() | LoadControlState(Object) | |
![]() | MapPathSecure(String) | |
![]() | OnInit(EventArgs) | |
![]() | OnLoad(EventArgs) | |
![]() | OnPreRender(EventArgs) | |
![]() | OnUnload(EventArgs) | |
![]() | OpenFile(String) | |
![]() | RemovedControl(Control) | |
![]() | Render(HtmlTextWriter) | |
![]() | RenderChildren(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | ResolveClientUrl(String) | |
![]() | ResolveUrl(String) | |
![]() | SaveControlState() | |
![]() | SetDataBoundString(Int32, String) |
Questa API supporta l'infrastruttura prodotto e non può essere usata direttamente dal codice.
|
![]() | SetRenderMethodDelegate(RenderMethod) |
Questa API supporta l'infrastruttura prodotto e non può essere usata direttamente dal codice.
|
![]() | SetStaticString(Int32, String) |
Questa API supporta l'infrastruttura prodotto e non può essere usata direttamente dal codice.
|
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString() |
Nome | Descrizione | |
---|---|---|
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | Unload |
Nome | Descrizione | |
---|---|---|
![]() | FindDataSourceControl() | |
![]() | FindFieldTemplate(String) | |
![]() | FindMetaTable() |
The T:System.Web.UI.DataBoundLiteralControl class persists the value of its P:System.Web.UI.DataBoundLiteralControl.Text property to view state.
The following code example creates a class that obtains a T:System.Web.UI.DataBoundLiteralControl object and displays the P:System.Web.UI.DataBoundLiteralControl.Text property of the object.
using System; using System.Web; using System.Web.UI; namespace Samples.AspNet.CS.Controls { public class MyControl : Control { [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name="FullTrust")] protected override void Render(HtmlTextWriter output) { // Checks if a DataBoundLiteralControl object is present. if ( (HasControls()) && (Controls[0] is DataBoundLiteralControl) ) { // Obtains the DataBoundLiteralControl instance. DataBoundLiteralControl boundLiteralControl = (DataBoundLiteralControl)Controls[0]; // Retrieves the text in the boundLiteralControl object. String text = boundLiteralControl.Text; output.Write("<h4>Your Message: " +text+"</h4>"); } } } }
Disponibile da 1.1
I membri statici pubblici ( Condiviso in Visual Basic) di questo tipo è thread safe. Non tutti i membri di istanza sono garantiti come thread safe.