Export (0) Print
Expand All

TextBox Class

Provides a text-based control that allows the user to enter text.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

[ValidationPropertyAttribute("Text")] 
public class TextBox : 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.

NoteNote:

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).

TopicLocation
Walkthrough: Creating Web Pages for Mobile DevicesBuilding ASP .NET Web Applications in Visual Studio

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft