|
Il presente articolo è stato tradotto automaticamente. Passare il puntatore sulle frasi nell'articolo per visualizzare il testo originale. Ulteriori informazioni.
|
Traduzione
Originale
|
Classe TextBox
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.TextBox
Spazio dei nomi: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Il tipo TextBox espone i seguenti membri.
| Nome | Descrizione | |
|---|---|---|
![]() | AccessKey | |
![]() | Adapter | |
![]() | AppRelativeTemplateSourceDirectory | |
![]() | Attributes | |
![]() | AutoCompleteType | |
![]() | AutoPostBack | |
![]() | BackColor | |
![]() | BindingContainer | Infrastruttura. |
![]() | BorderColor | |
![]() | BorderStyle | |
![]() | BorderWidth | |
![]() | CausesValidation | |
![]() | ChildControlsCreated | |
![]() | ClientID | |
![]() | ClientIDMode | |
![]() | ClientIDSeparator | |
![]() | Columns | |
![]() | Context | |
![]() | Controls | |
![]() | ControlStyle | |
![]() | ControlStyleCreated | |
![]() | CssClass | |
![]() | DataItemContainer | |
![]() | DataKeysContainer | |
![]() | DesignMode | |
![]() | Enabled | |
![]() | EnableTheming | |
![]() | EnableViewState | |
![]() | Events | |
![]() | Font | |
![]() | ForeColor | |
![]() | HasAttributes | |
![]() | HasChildViewState | |
![]() | Height | |
![]() | ID | |
![]() | IdSeparator | Infrastruttura. |
![]() | IsChildControlStateCleared | |
![]() | IsEnabled | |
![]() | IsTrackingViewState | |
![]() | IsViewStateEnabled | |
![]() | LoadViewStateByID | |
![]() | MaxLength | |
![]() | NamingContainer | |
![]() | Page | |
![]() | Parent | |
![]() | ReadOnly | |
![]() | RenderingCompatibility | |
![]() | Rows | |
![]() | Site | |
![]() | SkinID | |
![]() | Style | |
![]() | SupportsDisabledAttribute | |
![]() | TabIndex | |
![]() | TagKey | |
![]() | TagName | |
![]() | TemplateControl | |
![]() | TemplateSourceDirectory | |
![]() | Text | |
![]() | TextMode | |
![]() | ToolTip | |
![]() | UniqueID | |
![]() | ValidateRequestMode | |
![]() | ValidationGroup | |
![]() | ViewState | |
![]() | ViewStateIgnoresCase | |
![]() | ViewStateMode | |
![]() | Visible | |
![]() | Width | |
![]() | Wrap |
| Nome | Descrizione | |
|---|---|---|
![]() | AddAttributesToRender | Infrastruttura. |
![]() | AddedControl | |
![]() | AddParsedSubObject | Infrastruttura. |
![]() | ApplyStyle | |
![]() | ApplyStyleSheetSkin | |
![]() | BeginRenderTracing | |
![]() | BuildProfileTree | Infrastruttura. |
![]() | ClearCachedClientID | Infrastruttura. |
![]() | ClearChildControlState | |
![]() | ClearChildState | |
![]() | ClearChildViewState | |
![]() | ClearEffectiveClientIDMode | Infrastruttura. |
![]() | CopyBaseAttributes | |
![]() | CreateChildControls | |
![]() | CreateControlCollection | |
![]() | CreateControlStyle | |
![]() | DataBind() | |
![]() | DataBind(Boolean) | |
![]() | DataBindChildren | |
![]() | Dispose | |
![]() | EndRenderTracing | |
![]() | EnsureChildControls | |
![]() | EnsureID | |
![]() | Equals(Object) | |
![]() | Finalize | |
![]() | FindControl(String) | |
![]() | FindControl(String, Int32) | Infrastruttura. |
![]() | Focus | |
![]() | GetDesignModeState | Infrastruttura. |
![]() | GetHashCode | |
![]() | GetRouteUrl(Object) | |
![]() | GetRouteUrl(RouteValueDictionary) | |
![]() | GetRouteUrl(String, Object) | |
![]() | GetRouteUrl(String, RouteValueDictionary) | |
![]() | GetType | |
![]() | GetUniqueIDRelativeTo | |
![]() | HasControls | |
![]() | HasEvents | |
![]() | IsLiteralContent | Infrastruttura. |
![]() | LoadControlState | |
![]() | LoadPostData | |
![]() | LoadViewState | |
![]() | MapPathSecure | |
![]() | MemberwiseClone | |
![]() | MergeStyle | |
![]() | OnBubbleEvent | |
![]() | OnDataBinding | |
![]() | OnInit | |
![]() | OnLoad | |
![]() | OnPreRender | Infrastruttura. |
![]() | OnTextChanged | |
![]() | OnUnload | |
![]() | OpenFile | |
![]() | RaiseBubbleEvent | |
![]() | RaisePostDataChangedEvent | |
![]() | RemovedControl | |
![]() | Render | |
![]() | RenderBeginTag | |
![]() | RenderChildren | |
![]() | RenderContents | |
![]() | RenderControl(HtmlTextWriter) | |
![]() | RenderControl(HtmlTextWriter, ControlAdapter) | |
![]() | RenderEndTag | |
![]() | ResolveAdapter | |
![]() | ResolveClientUrl | |
![]() | ResolveUrl | |
![]() | SaveControlState | |
![]() | SaveViewState | |
![]() | SetDesignModeState | |
![]() | SetRenderMethodDelegate | Infrastruttura. |
![]() | SetTraceData(Object, Object) | |
![]() | SetTraceData(Object, Object, Object) | |
![]() | ToString | |
![]() | TrackViewState |
| Nome | Descrizione | |
|---|---|---|
![]() | DataBinding | |
![]() | Disposed | |
![]() | Init | |
![]() | Load | |
![]() | PreRender | |
![]() | TextChanged | |
![]() | Unload |
| Nome | Descrizione | |
|---|---|---|
![]() | FindDataSourceControl | |
![]() | FindFieldTemplate | |
![]() | FindMetaTable |
| Nome | Descrizione | |
|---|---|---|
![]() ![]() | IAttributeAccessor.GetAttribute | Infrastruttura. |
![]() ![]() | IAttributeAccessor.SetAttribute | |
![]() ![]() | IControlBuilderAccessor.ControlBuilder | |
![]() ![]() | IControlDesignerAccessor.GetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetDesignModeState | |
![]() ![]() | IControlDesignerAccessor.SetOwnerControl | Infrastruttura. |
![]() ![]() | IControlDesignerAccessor.UserData | |
![]() ![]() | IDataBindingsAccessor.DataBindings | |
![]() ![]() | IDataBindingsAccessor.HasDataBindings | |
![]() ![]() | IExpressionsAccessor.Expressions | |
![]() ![]() | IExpressionsAccessor.HasExpressions | |
![]() ![]() | IParserAccessor.AddParsedSubObject | |
![]() ![]() | IPostBackDataHandler.LoadPostData | Infrastruttura. |
![]() ![]() | IPostBackDataHandler.RaisePostDataChangedEvent | Infrastruttura. |
introduzione
Attenzione |
|---|
sintassi dichiarativa
<asp:TextBox
AccessKey="string"
AutoCompleteType="None|Disabled|Cellular|Company|Department|
DisplayName|Email|FirstName|Gender|HomeCity|HomeCountryRegion|
HomeFax|HomePhone|HomeState|HomeStreetAddress|HomeZipCode|
Homepage|JobTitle|LastName|MiddleName|Notes|Office|Pager|
BusinessCity|BusinessCountryRegion|BusinessFax|BusinessPhone|
BusinessState|BusinessStreetAddress|BusinessUrl|
BusinessZipCode|Search"
AutoPostBack="True|False"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CausesValidation="True|False"
Columns="integer"
CssClass="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ID="string"
MaxLength="integer"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnTextChanged="TextChanged event handler"
OnUnload="Unload event handler"
ReadOnly="True|False"
Rows="integer"
runat="server"
SkinID="string"
Style="string"
TabIndex="integer"
Text="string"
TextMode="SingleLine|MultiLine|Password"
ToolTip="string"
ValidationGroup="string"
Visible="True|False"
Width="size"
Wrap="True|False"
/>
Nota sulla sicurezza |
|---|
<%@ 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> TextBox Example </title> <script runat="server"> protected void AddButton_Click(Object sender, EventArgs e) { int Answer; Answer = Convert.ToInt32(Value1.Text) + Convert.ToInt32(Value2.Text); AnswerMessage.Text = Answer.ToString(); } </script> </head> <body> <form id="form1" runat="server"> <h3> TextBox Example </h3> <table> <tr> <td colspan="5"> Enter integer values into the text boxes. <br /> Click the Add button to add the two values. <br /> Click the Reset button to reset the text boxes. </td> </tr> <tr> <td colspan="5"> </td> </tr> <tr align="center"> <td> <asp:TextBox ID="Value1" Columns="2" MaxLength="3" Text="1" runat="server"/> </td> <td> + </td> <td> <asp:TextBox ID="Value2" Columns="2" MaxLength="3" Text="1" runat="server"/> </td> <td> = </td> <td> <asp:Label ID="AnswerMessage" runat="server"/> </td> </tr> <tr> <td colspan="2"> <asp:RequiredFieldValidator ID="Value1RequiredValidator" ControlToValidate="Value1" ErrorMessage="Please enter a value.<br />" Display="Dynamic" runat="server"/> <asp:RangeValidator ID="Value1RangeValidator" ControlToValidate="Value1" Type="Integer" MinimumValue="1" MaximumValue="100" ErrorMessage="Please enter an integer <br /> between than 1 and 100.<br />" Display="Dynamic" runat="server"/> </td> <td colspan="2"> <asp:RequiredFieldValidator ID="Value2RequiredValidator" ControlToValidate="Value2" ErrorMessage="Please enter a value.<br />" Display="Dynamic" runat="server"/> <asp:RangeValidator ID="Value2RangeValidator" ControlToValidate="Value2" Type="Integer" MinimumValue="1" MaximumValue="100" ErrorMessage="Please enter an integer <br /> between than 1 and 100.<br />" Display="Dynamic" runat="server"/> </td> <td>   </td> </tr> <tr align="center"> <td colspan="4"> <asp:Button ID="AddButton" Text="Add" OnClick="AddButton_Click" runat="server"/> </td> <td> </td> </tr> </table> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (ruoli di base del server non supportati), Windows Server 2008 R2 (ruoli di base del server supportati con SP1 o versione successiva, Itanium non supportato)
.NET Framework non supporta tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

