TextBox Class
Provides a text-based control that allows the user to enter text.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
[ValidationPropertyAttribute(L"Text")] [AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] public ref class TextBox : public TextControl, IPostBackDataHandler
<mobile:TextBox />
The TextBox allows only single-line text input. This control also implements the IPostBackDataHandler interface; it can accept input and generate postbacks. With devices using WML, however, entered data might not post back to the server. When the user enters values in a text box, the values are stored in the Text property, which is inherited from the TextControl base class.
Note: |
|---|
A TextBox accepts user input, which is a potential security threat. By default, ASP.NET Mobile Web Forms pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview. |
| Topic | Location |
|---|---|
| Walkthrough: Creating Web Pages for Mobile Devices | Building ASP .NET Web Applications in Visual Studio |
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.Web.UI::Control
System.Web.UI.MobileControls::MobileControl
System.Web.UI.MobileControls::TextControl
System.Web.UI.MobileControls::TextBox
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: