TextBox Class
Assembly: System.Web.Mobile (in system.web.mobile.dll)
[ValidationPropertyAttribute(L"Text")] public ref class TextBox : public TextControl, IPostBackDataHandler
/** @attribute ValidationPropertyAttribute("Text") */
public class TextBox extends TextControl implements IPostBackDataHandler
ValidationPropertyAttribute("Text") public class TextBox extends TextControl implements IPostBackDataHandler
Not applicable.
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 (Visual Studio). |
| 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 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: